public class PDTrueTypeFont extends PDSimpleFont
dictionary, encoding, fontDescriptor, fontProgram, isFontParsed, toUnicodeCMap| Constructor and Description |
|---|
PDTrueTypeFont(COSDictionary dictionary)
Constructor from true type font dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
FontProgram |
getFontProgram() |
float |
getWidthFromProgram(int code)
Gets width of given code from font program.
|
boolean |
glyphIsPresent(int code)
Checks if glyph for given code is present in this font.
|
toUnicodecMapToUnicode, getDefaultWidth, getDictionary, getDifferences, getDifferencesFromCosEncoding, getEncoding, getEncodingMapping, getFirstChar, getFontDescriptor, getLastChar, getName, getProgramSubtype, getSubtype, getType, getWidth, getWidths, isSubset, isSuccessfullyParsed, isSymbolic, readCode, setSuccessfullyParsedisInherited, setInheritedclear, empty, getBooleanKey, getIntegerKey, getKey, getNameKey, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObjectpublic PDTrueTypeFont(COSDictionary dictionary)
dictionary - is true type font dictionary.public FontProgram getFontProgram()
getFontProgram in class PDFontpublic float getWidthFromProgram(int code)
PDFontgetWidthFromProgram in class PDFontcode - is code of character in strings to display.public boolean glyphIsPresent(int code)
PDFontglyphIsPresent in class PDFontcode - is code for glyph in this font.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.