| |
|
| java.lang.Object com.lowagie.text.pdf.FontDetails
FontDetails | class FontDetails (Code) | | Each font in the document will have an instance of this class
where the characters used will be represented.
author: Paulo Soares (psoares@consiste.pt) |
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. | public boolean | isSubset() Indicates if all the glyphs and widths for that particular
encoding should be included in the document. | public 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. |
fontName | PdfName fontName(Code) | | The font name that appears in the document body stream
|
fontType | int fontType(Code) | | The font type
|
longTag | HashMap longTag(Code) | | The map used with double byte encodings. The key is Integer(glyph) and the
value is int[]{glyph, width, Unicode code}
|
shortTag | byte shortTag(Code) | | The array used with single byte encodings
|
subset | protected boolean subset(Code) | | Indicates if all the glyphs and widths for that particular
encoding should be included in the document.
|
symbolic | boolean symbolic(Code) | | true if the font is symbolic
|
FontDetails | FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont)(Code) | | Each font used in a document has an instance of this class.
This class stores the characters used in the document and other
specifics unique to the current working document.
Parameters: fontName - the font name Parameters: indirectReference - the indirect reference to the font Parameters: baseFont - the BaseFont |
convertToBytes | byte[] convertToBytes(String text)(Code) | | Converts the text into bytes to be placed in the document.
The conversion is done according to the font and the encoding and the characters
used are stored.
Parameters: text - the text to convert the conversion |
getBaseFont | BaseFont getBaseFont()(Code) | | Gets the BaseFont of this font.
the BaseFont of this font |
getFontName | PdfName getFontName()(Code) | | Gets the font name as it appears in the document body.
the font name |
getIndirectReference | PdfIndirectReference getIndirectReference()(Code) | | Gets the indirect reference to this font.
the indirect reference to this font |
isSubset | public boolean isSubset()(Code) | | Indicates if all the glyphs and widths for that particular
encoding should be included in the document.
false to include all the glyphs and widths. |
setSubset | public void setSubset(boolean subset)(Code) | | Indicates if all the glyphs and widths for that particular
encoding should be included in the document. Set to false
to include all.
Parameters: subset - new value of property subset |
writeFont | void writeFont(PdfWriter writer)(Code) | | Writes the font definition to the document.
Parameters: writer - the PdfWriter of this document |
|
|
|