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
Instance of this class represent PDF font dictionary.
- Author:
- Sergey Shemyakov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected booleanprotected final 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
ConstructorsModifierConstructorDescriptionprotectedGFPDFont(PDFont font, RenderingMode renderingMode, String type) -
Method Summary
Modifier and TypeMethodDescriptionvalue 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)font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptorvalue of Italic flag in Flags entry in the font descriptortrue 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)getLinkedObjects(String link) rendering mode valuefont subtype (Subtype entry)getType()font type (Type entry)booleanMethods inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
getisInheritedMethods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getIDMethods 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, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from interface org.verapdf.model.pdlayer.PDObject
getentriesMethods inherited from interface org.verapdf.model.pdlayer.PDResource
getisInherited
-
Field Details
-
FONT_FILE
- See Also:
-
BASE_FONT
- See Also:
-
fontProgramParsed
protected boolean fontProgramParsed -
renderingMode
-
-
Constructor Details
-
GFPDFont
-
-
Method Details
-
getType
Description copied from interface:PDFontfont type (Type entry) -
getSubtype
Description copied from interface:PDFontfont subtype (Subtype entry)- Specified by:
getSubtypein interfacePDFont- Returns:
- font subtype (Subtype entry).
-
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
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
Description copied from interface:PDFontrendering mode value- Specified by:
getrenderingModein interfacePDFont- Returns:
- rendering mode value.
-
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
Description copied from interface:PDFontvalue of Italic flag in Flags entry in the font descriptor- Specified by:
getisItalicin interfacePDFont
-
getLinkedObjects
- 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
-