Package org.verapdf.pd.font.type3
Class PDType3Font
- java.lang.Object
-
- org.verapdf.pd.PDObject
-
- org.verapdf.pd.PDResource
-
- org.verapdf.pd.font.PDFont
-
- org.verapdf.pd.font.PDSimpleFont
-
- org.verapdf.pd.font.type3.PDType3Font
-
public class PDType3Font extends PDSimpleFont
- Author:
- Sergey Shemyakov
-
-
Field Summary
-
Fields inherited from class org.verapdf.pd.font.PDFont
boundingBox, dictionary, encoding, fontDescriptor, fontProgram, isFontParsed, toUnicodeCMap
-
-
Constructor Summary
Constructors Constructor Description PDType3Font(COSDictionary dictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsCharString(int code)Checks if char proc dictionary contains char proc for glyph with given code.COSDictionarygetCharProcDict()double[]getFontBoundingBox()double[]getFontMatrix()FontProgramgetFontProgram()StringgetName()PDResourcesgetResources()floatgetWidthFromProgram(int code)Gets width of given code from font program.booleanglyphIsPresent(int code)Checks if glyph for given code is present in this font.-
Methods inherited from class org.verapdf.pd.font.PDSimpleFont
toUnicode
-
Methods inherited from class org.verapdf.pd.font.PDFont
cMapToUnicode, getAscent, getBoundingBox, getDefaultWidth, getDescent, getDictionary, getDifferences, getDifferencesFromCosEncoding, getEncoding, getEncodingMapping, getFirstChar, getFontDescriptor, getFontWeight, getLastChar, getNameWithoutSubset, getProgramSubtype, getSubtype, getType, getWidth, getWidths, 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, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObject
-
-
-
-
Constructor Detail
-
PDType3Font
public PDType3Font(COSDictionary dictionary)
-
-
Method Detail
-
getCharProcDict
public COSDictionary getCharProcDict()
- Returns:
- dictionary with char proc values.
-
getFontProgram
public FontProgram getFontProgram()
- Specified by:
getFontProgramin classPDFont- Returns:
- embedded font program fo this PDFont.
-
getResources
public PDResources getResources()
- Returns:
- resources as presented in type 3 font dictionary.
-
getName
public String getName()
-
containsCharString
public boolean containsCharString(int code)
Checks if char proc dictionary contains char proc for glyph with given code.- Parameters:
code- is the code of glyph.- Returns:
- true if char proc for this glyph is present.
-
getFontBoundingBox
public double[] getFontBoundingBox()
- Returns:
- a rectangle, expressed in the glyph coordinate system, that shall specify the font bounding box.
-
getFontMatrix
public double[] getFontMatrix()
-
getWidthFromProgram
public float getWidthFromProgram(int code)
Description copied from class:PDFontGets width of given code from font program.- Specified by:
getWidthFromProgramin classPDFont- Parameters:
code- is code of character in strings to display.- Returns:
- width of glyph for this code.
-
glyphIsPresent
public boolean glyphIsPresent(int code)
Description copied from class:PDFontChecks if glyph for given code is present in this font.- Specified by:
glyphIsPresentin classPDFont- Parameters:
code- is code for glyph in this font.- Returns:
- true if glyph is present.
-
-