com.lowagie.text.pdf
public class DocumentFont extends BaseFont
| Field Summary | |
|---|---|
| float | Ascender |
| static String[] | cjkEncs |
| static String[] | cjkEncs2 |
| BaseFont | cjkMirror |
| static String[] | cjkNames |
| static String[] | cjkNames2 |
| float | CapHeight |
| IntHashtable | diffmap |
| float | Descender |
| PdfDictionary | font |
| String | fontName |
| boolean | isType0 |
| float | ItalicAngle |
| float | llx |
| float | lly |
| HashMap | metrics |
| PRIndirectReference | refFont |
| static int[] | stdEnc |
| IntHashtable | uni2byte |
| float | urx |
| float | ury |
| Constructor Summary | |
|---|---|
| DocumentFont(PRIndirectReference refFont) Creates a new instance of DocumentFont | |
| Method Summary | |
|---|---|
| boolean | charExists(int c) |
| byte[] | convertToBytes(String text) |
| byte[] | convertToBytes(int char1) |
| String | decodeString(PdfString ps) |
| void | doType1TT() |
| void | fillEncoding(PdfName encoding) |
| void | fillFontDesc(PdfDictionary fontDesc) |
| void | fillMetrics(byte[] touni, IntHashtable widths, int dw) |
| String[][] | getAllNameEntries() Gets all the entries of the names-table. |
| int[] | getCharBBox(int c) |
| String[][] | getFamilyFontName() Gets the family name of the font. |
| float | getFontDescriptor(int key, float fontSize) Gets the font parameter identified by key. |
| String[][] | getFullFontName() Gets the full name of the font. |
| PdfStream | getFullFontStream()
Always returns null. |
| PdfIndirectReference | getIndirectReference() |
| int | getKerning(int char1, int char2) Gets the kerning between two Unicode chars. |
| String | getPostscriptFontName() Gets the postscript font name. |
| protected int[] | getRawCharBBox(int c, String name) |
| int | getRawWidth(int c, String name) Gets the width from the font according to the Unicode char c
or the name. |
| int | getWidth(int char1)
Gets the width of a char in normalized 1000 units. |
| int | getWidth(String text) |
| boolean | hasKernPairs() Checks if the font has any kerning pairs. |
| void | processType0(PdfDictionary font) |
| IntHashtable | readWidths(PdfArray ws) |
| boolean | setKerning(int char1, int char2, int kern) |
| void | setPostscriptFontName(String name)
Sets the font name that will appear in the pdf font dictionary.
|
| void | writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams. |
Returns: the full name of the font
Since: 2.0.8
Returns: the family name of the font
key. Valid values
for key are ASCENT, CAPHEIGHT, DESCENT,
ITALICANGLE, BBOXLLX, BBOXLLY, BBOXURX
and BBOXURY.Parameters: key the parameter to be extracted fontSize the font size in points
Returns: the parameter in points
Returns: the full name of the font
Returns: null
Since: 2.1.3
Parameters: char1 the first char char2 the second char
Returns: the kerning to be applied
Returns: the postscript font name
c
or the name. If the name is null it's a symbolic font.Parameters: c the unicode char name the glyph name
Returns: the width of the char
char in normalized 1000 units.Parameters: char1 the unicode char to get the width of
Returns: the width in normalized 1000 units
Returns: true if the font has any kerning pairs
Parameters: name the new font name
Parameters: writer the writer for this document ref the font indirect reference params several parameters that depend on the font type
Throws: IOException on error DocumentException error in generating the object