|
fop 2.2 | |||||||||
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 | |
---|---|
int |
getCurrentEncoding()
Returns the current encoding. |
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. |
void |
setCurrentEncoding(int encoding)
Sets the current encoding. |
void |
setCurrentFont(Font f)
Sets the current font. |
void |
writeTf(Font f)
Writes a "Tf" command, setting a new current font. |
Methods inherited from class org.apache.fop.pdf.PDFTextUtil |
---|
adjustGlyphTJ, beginTextObject, concatMatrix, endTextObject, isInTextObject, setTextRenderingMode, setTextRenderingMode, updateTf, write, write, writeTd, writeTextMatrix, writeTf, writeTJ, 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 Font getCurrentFont()
public int getCurrentEncoding()
public void setCurrentFont(Font f)
f
- the new font to usepublic void setCurrentEncoding(int encoding)
encoding
- the new encodingprotected boolean isMultiByteFont(java.lang.String name)
name
- the name of the font
public void writeTf(Font f)
f
- the font to select
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |