You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/03/22 01:25:44 UTC
DO NOT REPLY [Bug 52966] New: How to use native text with
EPSDocumentGraphics2D
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
Bug #: 52966
Summary: How to use native text with EPSDocumentGraphics2D
Product: Fop
Version: all
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: ps
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: lmpmbernardo@gmail.com
Classification: Unclassified
Created attachment 28494
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28494
an example to test
As reported recently in the users mailing list the code:
OutputStream out = new FileOutputStream("mini-test.eps");
EPSDocumentGraphics2D g2d = new EPSDocumentGraphics2D(false);
g2d.setGraphicContext(new GraphicContext());
g2d.setCustomTextHandler(new NativeTextHandler(g2d, null));
g2d.setupDocument(out, 200, 100);
g2d.setFont(new Font("Helvetica", Font.PLAIN, 12));
g2d.drawString("Hi there", 50, 50);
g2d.finish();
out.close();
generates invalid EPS files.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
Luis Bernardo <lm...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|How to use native text with |[PATCH] How to use native
|EPSDocumentGraphics2D |text with
| |EPSDocumentGraphics2D
--- Comment #2 from Luis Bernardo <lm...@gmail.com> 2012-03-22 00:28:12 UTC ---
added patch tag
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
--- Comment #1 from Luis Bernardo <lm...@gmail.com> 2012-03-22 00:27:30 UTC ---
Created attachment 28495
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28495
a proposed fix, and two examples and a conf file
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Glenn Adams <gl...@skynav.com> 2012-04-08 21:32:38 UTC ---
patch landed at http://svn.apache.org/viewvc?view=revision&revision=1311103,
with the exception of examples/fop-eps.xconf, which i excluded since it doesn't
appear to be an appropriate place to put it (nor is it otherwise used by the
example)
thanks luis!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
--- Comment #6 from Luis Bernardo <lm...@gmail.com> 2012-04-13 22:18:18 UTC ---
fop-eps.xconf is used by one of the examples. it shows how to configure fonts.
maybe the place was not the best but the file is needed to run the
embedding.ExampleEPS example.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:41:22 UTC ---
resetting P2 open bugs to P3 pending further review
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52966] [PATCH] How to use native text with
EPSDocumentGraphics2D
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52966
--- Comment #4 from Glenn Adams <gl...@skynav.com> 2012-04-08 09:10:58 UTC ---
increase priority due to presence of a patch
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.