Class PDFTextPainter

java.lang.Object
org.apache.batik.bridge.BasicTextPainter
org.apache.batik.bridge.StrokingTextPainter
org.apache.fop.svg.NativeTextPainter
org.apache.fop.svg.PDFTextPainter
All Implemented Interfaces:
org.apache.batik.bridge.TextPainter
Direct Known Subclasses:
PDFFlowExtTextPainter, PDFFlowTextPainter

class PDFTextPainter extends NativeTextPainter
Renders the attributed character iterator of a TextNode. This class draws the text directly into the PDFGraphics2D so that the text is not drawn using shapes which makes the PDF files larger. If the text is simple enough to draw then it sets the font and calls drawString. If the text is complex or the cannot be translated into a simple drawString the StrokingTextPainter is used instead.
Version:
$Id: PDFTextPainter.java 1805173 2017-08-16 10:50:04Z ssteiner $