public abstract class PDFTextUtil extends PDFTextUtil
PDFTextUtil.write(String)
).TR_CLIP, TR_FILL, TR_FILL_CLIP, TR_FILL_STROKE, TR_FILL_STROKE_CLIP, TR_INVISIBLE, TR_STROKE, TR_STROKE_CLIP
Constructor | Description |
---|---|
PDFTextUtil(FontInfo fontInfo) |
Main constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adjustGlyphTJ, beginTextObject, concatMatrix, endTextObject, isInTextObject, setTextRenderingMode, setTextRenderingMode, updateTf, write, write, writeTd, writeTextMatrix, writeTf, writeTj, writeTJ, writeTJMappedChar
public PDFTextUtil(FontInfo fontInfo)
fontInfo
- the font catalogprotected 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 fontpublic void writeTf(Font f)
f
- the font to selectCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.