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, renderingModeFields inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
RESOURCE_TYPEFields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObjectFields inherited from class org.verapdf.model.GenericModelObject
contextDependent -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGFPDSimpleFont(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 Booleantrue 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, isFontProgramParsedMethods inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
getisInheritedMethods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getID, getobjectKeyMethods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from interface org.verapdf.model.pdlayer.PDFont
getfontFileSubtype, getfontName, getisItalic, getisSymbolic, getrenderingMode, getSubtype, getTypeMethods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries, getobjectKeyMethods inherited from interface org.verapdf.model.pdlayer.PDResource
getisInherited
-
Constructor Details
-
GFPDSimpleFont
-
-
Method Details
-
getisStandard
Description copied from interface:PDSimpleFonttrue if the font is one of the 14 standard fonts defined in PDF 1.4 Reference- Specified by:
getisStandardin interfacePDSimpleFont- Returns:
- true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference.
-
getFirstChar
Description copied from interface:PDSimpleFontFirstChar entry; null if LastChar entry is not present or has invalid type- Specified by:
getFirstCharin interfacePDSimpleFont- Returns:
- FirstChar entry; null if LastChar entry is not present or has invalid type.
-
getLastChar
Description copied from interface:PDSimpleFontLastChar entry; null if LastChar entry is not present or has invalid type- Specified by:
getLastCharin interfacePDSimpleFont- Returns:
- LastChar entry; null if LastChar entry is not present or has invalid type.
-
getWidths_size
Description copied from interface:PDSimpleFontThe size of the Widths array; null if the Widths array is not present or has invalid type- Specified by:
getWidths_sizein 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:PDSimpleFontString 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:
getEncodingin 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:PDSimpleFonttrue if an Encoding dictionary contains a Differences entry- Specified by:
getcontainsDifferencesin interfacePDSimpleFont
-