public class PDType1Font extends PDSimpleFont
| Modifier and Type | Field and Description |
|---|---|
static ASAtom[] |
STANDARD_FONT_NAMES |
dictionary, encoding, fontDescriptor, fontProgram, isFontParsed, toUnicodeCMap| Constructor and Description |
|---|
PDType1Font(COSDictionary dictionary)
Constructor from type 1 font dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getDescriptorCharSet() |
FontProgram |
getFontProgram() |
Double |
getWidth(int code)
Gets width for glyph with given code in this font.
|
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.
|
Boolean |
isStandard() |
toUnicodegetDefaultWidth, getDictionary, getDifferences, getDifferencesFromCosEncoding, getEncoding, getEncodingMapping, getEncodingMappingFromCOSObject, getFirstChar, getFontDescriptor, getFontFile2, getFontName, getLastChar, getName, getProgramSubtype, getSubtype, getType, 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 static final ASAtom[] STANDARD_FONT_NAMES
public PDType1Font(COSDictionary dictionary)
dictionary - is type 1 font dictionary.public Set<String> getDescriptorCharSet()
public FontProgram getFontProgram()
getFontProgram in class PDFontpublic Boolean isStandard()
public Double getWidth(int code)
public 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–2017 The veraPDF Consortium. All rights reserved.