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 protected
GFPDSimpleFont(PDSimpleFont font, RenderingMode renderingMode, String type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Boolean
getcontainsDifferences()
true if an Encoding dictionary contains a Differences entryString
getEncoding()
- 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)Long
getFirstChar()
FirstChar entry; null if LastChar entry is not present or has invalid typeabstract Boolean
getisStandard()
true if the font is one of the 14 standard fonts defined in PDF 1.4 ReferenceLong
getLastChar()
LastChar entry; null if LastChar entry is not present or has invalid typeLong
getWidths_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: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
public Long 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
public Long 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
public Long 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
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:
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
public Boolean getcontainsDifferences()
Description copied from interface:PDSimpleFont
true if an Encoding dictionary contains a Differences entry- Specified by:
getcontainsDifferences
in interfacePDSimpleFont
-
-