Package org.verapdf.pd.font
Class PDSimpleFont
java.lang.Object
org.verapdf.pd.PDObject
org.verapdf.pd.PDResource
org.verapdf.pd.font.PDFont
org.verapdf.pd.font.PDSimpleFont
- Direct Known Subclasses:
PDTrueTypeFont
,PDType1Font
,PDType3Font
Represents simple font on pd level (Type1, TrueType, Type3).
- Author:
- Sergey Shemyakov
-
Field Summary
Fields inherited from class org.verapdf.pd.font.PDFont
boundingBox, dictionary, encoding, fontDescriptor, fontProgram, isFontParsed, toUnicodeCMap
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.verapdf.pd.font.PDFont
calculateEncodingMapping, cMapToUnicode, getAscent, getBoundingBox, getDefaultWidth, getDescent, getDictionary, getDifferences, getDifferencesFromCosEncoding, getEncoding, getEncodingMapping, getFirstChar, getFontDescriptor, getFontProgram, getFontWeight, getLastChar, getName, getNameWithoutSubset, getProgramSubtype, getSubtype, getSubtypeEntryValue, getType, getWidth, getWidthFromProgram, getWidths, glyphIsPresent, isSubset, isSuccessfullyParsed, isSymbolic, readCode, setSuccessfullyParsed
Methods inherited from class org.verapdf.pd.PDResource
isInherited, setInherited
Methods inherited from class org.verapdf.pd.PDObject
clear, empty, getBooleanKey, getIntegerKey, getKey, getNameKey, getNameKeyStringValue, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObject
-
Constructor Details
-
PDSimpleFont
Constructor from font dictionary.- Parameters:
dictionary
- is font dictionary for this simple font.
-
-
Method Details
-
toUnicode
This method maps character code to a Unicode value. Firstly it checks toUnicode CMap, then it behaves like described in PDF32000_2008 9.10.2 "Mapping Character Codes to Unicode Values" for simple font.
-