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: [email protected]
ReportedBy: [email protected]
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.