Bug 47000 - [PATCH] Full-featured TextPainter for PS output
Summary: [PATCH] Full-featured TextPainter for PS output
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: ps (show other bugs)
Version: trunk
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords: PatchAvailable
Depends on: 47006
Blocks: 40529
  Show dependency tree
 
Reported: 2009-04-08 12:39 UTC by Jeremias Maerki
Modified: 2012-04-01 07:10 UTC (History)
0 users



Attachments
PSTextPainter patch (114.82 KB, patch)
2009-04-08 12:39 UTC, Jeremias Maerki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremias Maerki 2009-04-08 12:39:12 UTC
Created attachment 23467 [details]
PSTextPainter patch

This patch adds a full-featured Batik TextPainter for PostScript/EPS output, so text is no longer painted as shapes but using PostScript text operators. All SVG text variants including flow text are supported. The old, incomplete PSTextPainter is completely replaced. The old one was inactive anyway due to a bug.

As with the PDFTextPainter, the PSTextPainter relies on Batik font subsystem (which uses Java2D/AWT fonts) for font availability and tries to map those to internally configured fonts. Since PS output currently only supports Type 1 fonts, there might be difficulties matching the fonts as not all JVMs properly support and report Type 1 fonts installed in the operating systems. Furthermore, not all glyphs in the Type 1 font may be available as a result.

Some numbers to illustrate the improvement (size of EPS files generated by EPSTranscoder):
W3C SVG test suite, text-path-01-b.svg, old: 103KB, new 17KB
W3C SVG test suite, text-deco-01-b.svg, old: 123KB, new 20KB
batik/samples/extensions/flowText.svg, old: 413KB, new 24KB
Comment 1 Jeremias Maerki 2009-04-08 12:53:15 UTC
Please don't review just yet. I've forgotten to create the patch necessary for XGC so this actually compiles. Will do that tomorrow morning.
Comment 2 Jeremias Maerki 2009-04-19 23:52:29 UTC
No comments received - assuming lazy consensus. Committed: http://svn.apache.org/viewvc?rev=766594&view=rev
Comment 3 Glenn Adams 2012-04-01 07:10:03 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed