|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFTextUtil
org.apache.fop.svg.PDFTextUtil
public abstract class PDFTextUtil
Utility class for generating PDF text objects. It needs to be subclassed to add writing
functionality (see PDFTextUtil.write(String)
).
Field Summary |
---|
Fields inherited from class org.apache.fop.pdf.PDFTextUtil |
---|
TR_CLIP, TR_FILL, TR_FILL_CLIP, TR_FILL_STROKE, TR_FILL_STROKE_CLIP, TR_INVISIBLE, TR_STROKE, TR_STROKE_CLIP |
Constructor Summary | |
---|---|
PDFTextUtil(FontInfo fontInfo)
Main constructor. |
Method Summary | |
---|---|
Font |
getCurrentFont()
Returns the current font in use. |
protected void |
initValues()
Resets the state fields. |
protected boolean |
isMultiByteFont(java.lang.String name)
Determines whether the font with the given name is a multi-byte font. |
Font |
selectFontForChar(char ch)
Selects a font from the font list suitable to display the given character. |
void |
setCurrentFont(Font f)
Sets the current font. |
void |
setFont(Font font)
Sets the current font for the text object. |
void |
setFonts(Font[] fonts)
Sets the current fonts for the text object. |
void |
writeTf(Font f)
Writes a "Tf" command, setting a new current font. |
void |
writeTJChar(char ch)
Writes a char to the "TJ-Buffer". |
Methods inherited from class org.apache.fop.pdf.PDFTextUtil |
---|
adjustGlyphTJ, beginTextObject, concatMatrix, endTextObject, isInTextObject, restoreGraphicsState, saveGraphicsState, setTextRenderingMode, setTextRenderingMode, updateTf, write, writeTextMatrix, writeTf, writeTJ, writeTJMappedChar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFTextUtil(FontInfo fontInfo)
fontInfo
- the font catalogMethod Detail |
---|
protected void initValues()
initValues
in class PDFTextUtil
public void setFonts(Font[] fonts)
fonts
- the new fontspublic void setFont(Font font)
font
- the new fontpublic Font getCurrentFont()
public void setCurrentFont(Font f)
f
- the new font to useprotected boolean isMultiByteFont(java.lang.String name)
name
- the name of the font
public void writeTf(Font f)
f
- the font to selectpublic Font selectFontForChar(char ch)
ch
- the character
public void writeTJChar(char ch)
ch
- the unmapped character
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |