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 and Description |
---|
PDFTextUtil(FontInfo fontInfo)
Main constructor.
|
Modifier and Type | Method and 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.
|
Font |
selectFontForChar(char ch)
Selects a font from the font list suitable to display the given character.
|
void |
setCurrentEncoding(int encoding)
Sets the current encoding.
|
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".
|
adjustGlyphTJ, beginTextObject, concatMatrix, endTextObject, isInTextObject, setTextRenderingMode, setTextRenderingMode, updateTf, write, writeTd, writeTextMatrix, writeTf, writeTJ, writeTj, writeTJMappedChar
public PDFTextUtil(FontInfo fontInfo)
fontInfo
- the font catalogprotected 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 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 selectpublic Font selectFontForChar(char ch)
ch
- the characterpublic void writeTJChar(char ch)
ch
- the unmapped characterCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.