org.apache.fop.render.ps
Class NativeTextHandler
java.lang.Object
org.apache.fop.render.ps.NativeTextHandler
- TextHandler
public class NativeTextHandler
extends java.lang.Object
implements TextHandler
Specialized TextHandler implementation that the PSGraphics2D class delegates to to paint text
using PostScript text operations.
currentFontName
protected String currentFontName
the current (internal) font name
currentFontSize
protected int currentFontSize
the current font size in millipoints
font
protected Font font
Currently valid Font
fontInfo
protected FontInfo fontInfo
FontInfo containing all available fonts
overrideFont
protected Font overrideFont
Overriding FontState
NativeTextHandler
public NativeTextHandler(PSGraphics2D g2d,
FontInfo fontInfo)
Main constructor.
g2d
- the PSGraphics2D instance this instances is used byfontInfo
- the FontInfo object with all available fonts
drawString
public void drawString(String s,
float x,
float y)
throws IOException
Draw a string to the PostScript document. The text is painted using
text operations.
org.apache.xmlgraphics.java2d.ps.TextHandler.drawString(java.lang.String, float, float)
getFontInfo
public FontInfo getFontInfo()
Return the font information associated with this object
setOverrideFont
public void setOverrideFont(Font override)
Sets the overriding font.
override
- Overriding Font to set
writePageSetup
public void writePageSetup()
throws IOException
org.apache.xmlgraphics.java2d.ps.TextHandler.writePageSetup()
writeSetup
public void writeSetup()
throws IOException
org.apache.xmlgraphics.java2d.ps.TextHandler.writeSetup()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.