Class GFPDSimpleFont
java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.pd.GFPDObject
org.verapdf.gf.model.impl.pd.GFPDResource
org.verapdf.gf.model.impl.pd.font.GFPDFont
org.verapdf.gf.model.impl.pd.font.GFPDSimpleFont
- All Implemented Interfaces:
Object
,PDFont
,PDObject
,PDResource
,PDSimpleFont
- Direct Known Subclasses:
GFPDTrueTypeFont
,GFPDType1Font
,GFPDType3Font
Represents one of the simple font types (Type 1, TrueType, Type 3).
- Author:
- Sergey Shemyakov
-
Field Summary
Fields inherited from class org.verapdf.gf.model.impl.pd.font.GFPDFont
BASE_FONT, FONT_FILE, fontProgramParsed, renderingMode
Fields inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
RESOURCE_TYPE
Fields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObject
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GFPDSimpleFont
(PDSimpleFont font, RenderingMode renderingMode, String type) -
Method Summary
Modifier and TypeMethodDescriptiontrue if an Encoding dictionary contains a Differences entryString representation of the font encoding: - null if the /Encoding entry is not present in the font dictionary - if /Encoding entry in the font dictionary if of Name type, then the value of this entry; - if /Encoding entry is a dictionary, which does not contain /Differences array, then the value of /BaseEncoding entry in this dictionary (or null, if /BaseEncoding is also not present)FirstChar entry; null if LastChar entry is not present or has invalid typeabstract Boolean
true if the font is one of the 14 standard fonts defined in PDF 1.4 ReferenceLastChar entry; null if LastChar entry is not present or has invalid typeThe size of the Widths array; null if the Widths array is not present or has invalid typeMethods inherited from class org.verapdf.gf.model.impl.pd.font.GFPDFont
getEncodingMapping, getfontFileSubtype, getfontName, getisItalic, getisSymbolic, getLinkedObjects, getrenderingMode, getSubtype, getType, isFontProgramParsed
Methods inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
getisInherited
Methods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getID, getobjectKey
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
Methods inherited from interface org.verapdf.model.pdlayer.PDFont
getfontFileSubtype, getfontName, getisItalic, getisSymbolic, getrenderingMode, getSubtype, getType
Methods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries, getobjectKey
Methods inherited from interface org.verapdf.model.pdlayer.PDResource
getisInherited
-
Constructor Details
-
GFPDSimpleFont
-
-
Method Details
-
getisStandard
Description copied from interface:PDSimpleFont
true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference- Specified by:
getisStandard
in interfacePDSimpleFont
- Returns:
- true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference.
-
getFirstChar
Description copied from interface:PDSimpleFont
FirstChar entry; null if LastChar entry is not present or has invalid type- Specified by:
getFirstChar
in interfacePDSimpleFont
- Returns:
- FirstChar entry; null if LastChar entry is not present or has invalid type.
-
getLastChar
Description copied from interface:PDSimpleFont
LastChar entry; null if LastChar entry is not present or has invalid type- Specified by:
getLastChar
in interfacePDSimpleFont
- Returns:
- LastChar entry; null if LastChar entry is not present or has invalid type.
-
getWidths_size
Description copied from interface:PDSimpleFont
The size of the Widths array; null if the Widths array is not present or has invalid type- Specified by:
getWidths_size
in interfacePDSimpleFont
- Returns:
- The size of the Widths array; null if the Widths array is not present or has invalid type.
-
getEncoding
Description copied from interface:PDSimpleFont
String representation of the font encoding: - null if the /Encoding entry is not present in the font dictionary - if /Encoding entry in the font dictionary if of Name type, then the value of this entry; - if /Encoding entry is a dictionary, which does not contain /Differences array, then the value of /BaseEncoding entry in this dictionary (or null, if /BaseEncoding is also not present)- Specified by:
getEncoding
in interfacePDSimpleFont
- Returns:
- String representation of the font encoding: null if the /Encoding entry is not present in the font dictionary; if /Encoding entry in the font dictionary of Name type, then the value of this entry; if /Encoding entry is a dictionary, which does not contain /Differences array, then the value of /BaseEncoding entry in this dictionary (or null, if /BaseEncoding is also not present);
-
getcontainsDifferences
Description copied from interface:PDSimpleFont
true if an Encoding dictionary contains a Differences entry- Specified by:
getcontainsDifferences
in interfacePDSimpleFont
-