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 StringBASE_FONTstatic StringFONT_FILEprotected booleanfontProgramParsedprotected RenderingModerenderingMode-
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 protectedGFPDFont(PDFont font, RenderingMode renderingMode, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncodinggetEncodingMapping()StringgetfontFileSubtype()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)StringgetfontName()font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptorBooleangetisItalic()value of Italic flag in Flags entry in the font descriptorBooleangetisSymbolic()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)LonggetrenderingMode()rendering mode valueStringgetSubtype()font subtype (Subtype entry)StringgetType()font type (Type entry)booleanisFontProgramParsed()-
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:PDFontfont subtype (Subtype entry)- Specified by:
getSubtypein interfacePDFont- Returns:
- font subtype (Subtype entry).
-
getfontName
public String getfontName()
Description copied from interface:PDFontfont name defined by BaseFont entry in the font dictionary and FontName key in the font descriptor- Specified by:
getfontNamein 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:PDFonttrue 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:
getisSymbolicin 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:PDFontrendering mode value- Specified by:
getrenderingModein interfacePDFont- Returns:
- rendering mode value.
-
getfontFileSubtype
public String getfontFileSubtype()
Description copied from interface:PDFontvalue 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:
getfontFileSubtypein interfacePDFont
-
getisItalic
public Boolean getisItalic()
Description copied from interface:PDFontvalue of Italic flag in Flags entry in the font descriptor- Specified by:
getisItalicin interfacePDFont
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
isFontProgramParsed
public boolean isFontProgramParsed()
-
getEncodingMapping
public Encoding getEncodingMapping()
-
-