Class GFPDFont
- 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
-
- All Implemented Interfaces:
Object
,PDFont
,PDObject
,PDResource
- Direct Known Subclasses:
GFPDCIDFont
,GFPDEmptyFont
,GFPDSimpleFont
,GFPDType0Font
public class GFPDFont extends GFPDResource implements PDFont
Instance of this class represent PDF font dictionary.- Author:
- Sergey Shemyakov
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_FONT
static String
FONT_FILE
protected boolean
fontProgramParsed
protected RenderingMode
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
GFPDFont(PDFont font, RenderingMode renderingMode, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Encoding
getEncodingMapping()
String
getfontFileSubtype()
value of the entry /Subtype in the embedded font file stream, or null, if the this entry is not present (or the font is not embedded)String
getfontName()
font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptorBoolean
getisItalic()
value of Italic flag in Flags entry in the font descriptorBoolean
getisSymbolic()
true if the font flags in the font descriptor dictionary mark indicate that the font is symbolic (the entry /Flags has bit 3 set to 1 and bit 6 set to 0)List<? extends Object>
getLinkedObjects(String link)
Long
getrenderingMode()
rendering mode valueString
getSubtype()
font subtype (Subtype entry)String
getType()
font type (Type entry)boolean
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, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries
-
Methods inherited from interface org.verapdf.model.pdlayer.PDResource
getisInherited
-
-
-
-
Field Detail
-
FONT_FILE
public static final String FONT_FILE
- See Also:
- Constant Field Values
-
BASE_FONT
public static final String BASE_FONT
- See Also:
- Constant Field Values
-
fontProgramParsed
protected boolean fontProgramParsed
-
renderingMode
protected final RenderingMode renderingMode
-
-
Constructor Detail
-
GFPDFont
protected GFPDFont(PDFont font, RenderingMode renderingMode, String type)
-
-
Method Detail
-
getSubtype
public String getSubtype()
Description copied from interface:PDFont
font subtype (Subtype entry)- Specified by:
getSubtype
in interfacePDFont
- Returns:
- font subtype (Subtype entry).
-
getfontName
public String getfontName()
Description copied from interface:PDFont
font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptor- Specified by:
getfontName
in interfacePDFont
- Returns:
- font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptor.
-
getisSymbolic
public Boolean getisSymbolic()
Description copied from interface:PDFont
true if the font flags in the font descriptor dictionary mark indicate that the font is symbolic (the entry /Flags has bit 3 set to 1 and bit 6 set to 0)- Specified by:
getisSymbolic
in interfacePDFont
- Returns:
- true if the font flags in the font descriptor dictionary mark indicate that the font is symbolic (the entry /Flags has bit 3 set to 1 and bit 6 set to 0).
-
getrenderingMode
public Long getrenderingMode()
Description copied from interface:PDFont
rendering mode value- Specified by:
getrenderingMode
in interfacePDFont
- Returns:
- rendering mode value.
-
getfontFileSubtype
public String getfontFileSubtype()
Description copied from interface:PDFont
value of the entry /Subtype in the embedded font file stream, or null, if the this entry is not present (or the font is not embedded)- Specified by:
getfontFileSubtype
in interfacePDFont
-
getisItalic
public Boolean getisItalic()
Description copied from interface:PDFont
value of Italic flag in Flags entry in the font descriptor- Specified by:
getisItalic
in interfacePDFont
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjects
in interfaceObject
- Overrides:
getLinkedObjects
in classGenericModelObject
- Parameters:
link
- - the name of a link- Returns:
- List of objects with the given link
-
isFontProgramParsed
public boolean isFontProgramParsed()
-
getEncodingMapping
public Encoding getEncodingMapping()
-
-