org.apache.fop.svg

Class PDFTextPainter

Known Direct Subclasses:
PDFFlowExtTextPainter, PDFFlowTextPainter

public class PDFTextPainter
extends StrokingTextPainter

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 592016 2007-11-05 14:34:18Z vhennebert $

Constructor Summary

PDFTextPainter(FontInfo fi)
Create a new PDF text painter with the given font information.

Method Summary

protected void
paintTextRuns(List textRuns, Graphics2D g2d)

Constructor Details

PDFTextPainter

public PDFTextPainter(FontInfo fi)
Create a new PDF text painter with the given font information.
Parameters:
fi - the font info

Method Details

paintTextRuns

protected void paintTextRuns(List textRuns,
                             Graphics2D g2d)

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.