com.lowagie.text.pdf
class FontDetails extends Object
Field Summary | |
---|---|
BaseFont | baseFont The font |
CJKFont | cjkFont |
IntHashtable | cjkTag |
PdfName | fontName The font name that appears in the document body stream |
int | fontType The font type |
PdfIndirectReference | indirectReference The indirect reference to this font |
HashMap | longTag The map used with double byte encodings. |
byte[] | shortTag The array used with single byte encodings |
protected boolean | subset Indicates if all the glyphs and widths for that particular
encoding should be included in the document. |
boolean | symbolictrue if the font is symbolic |
TrueTypeFontUnicode | ttu The font if its an instance of TrueTypeFontUnicode |
Constructor Summary | |
---|---|
FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont) Each font used in a document has an instance of this class.
|
Method Summary | |
---|---|
byte[] | convertToBytes(String text) Converts the text into bytes to be placed in the document.
|
BaseFont | getBaseFont() Gets the BaseFont of this font. |
PdfName | getFontName() Gets the font name as it appears in the document body. |
PdfIndirectReference | getIndirectReference() Gets the indirect reference to this font. |
boolean | isSubset() Indicates if all the glyphs and widths for that particular
encoding should be included in the document. |
void | setSubset(boolean subset) Indicates if all the glyphs and widths for that particular
encoding should be included in the document. |
void | writeFont(PdfWriter writer) Writes the font definition to the document. |
true
if the font is symbolicTrueTypeFontUnicode
Parameters: fontName the font name indirectReference the indirect reference to the font baseFont the BaseFont
Parameters: text the text to convert
Returns: the conversion
BaseFont
of this font.Returns: the BaseFont
of this font
Returns: the font name
Returns: the indirect reference to this font
Returns: false
to include all the glyphs and widths.
false
to include all.Parameters: subset new value of property subset
Parameters: writer the PdfWriter
of this document