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
public abstract class GFPDSimpleFont extends GFPDFont implements PDSimpleFont
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
Constructors Modifier Constructor Description protectedGFPDSimpleFont(PDSimpleFont font, RenderingMode renderingMode, String type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BooleangetcontainsDifferences()true if an Encoding dictionary contains a Differences entryStringgetEncoding()- 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)LonggetFirstChar()FirstChar entry; null if LastChar entry is not present or has invalid typeabstract BooleangetisStandard()true if the font is one of the 14 standard fonts defined in PDF 1.4 ReferenceLonggetLastChar()LastChar entry; null if LastChar entry is not present or has invalid typeLonggetWidths_size()The size of the Widths array; null if the Widths array is not present or has invalid type-
Methods 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
-
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
-
Methods inherited from interface org.verapdf.model.pdlayer.PDResource
getisInherited
-
-
-
-
Constructor Detail
-
GFPDSimpleFont
protected GFPDSimpleFont(PDSimpleFont font, RenderingMode renderingMode, String type)
-
-
Method Detail
-
getisStandard
public abstract Boolean 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
public Long 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
public Long 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
public Long 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
public String getEncoding()
Description copied from interface:PDSimpleFont- 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
public Boolean getcontainsDifferences()
Description copied from interface:PDSimpleFonttrue if an Encoding dictionary contains a Differences entry- Specified by:
getcontainsDifferencesin interfacePDSimpleFont
-
-