Class GFPDTrueTypeFont
- 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
-
- org.verapdf.gf.model.impl.pd.font.GFPDTrueTypeFont
-
- All Implemented Interfaces:
Object,PDFont,PDObject,PDResource,PDSimpleFont,PDTrueTypeFont
public class GFPDTrueTypeFont extends GFPDSimpleFont implements PDTrueTypeFont
Represents TrueType font dictionary.- Author:
- Sergey Shemyakov
-
-
Field Summary
Fields Modifier and Type Field Description static StringTRUETYPE_FONT_TYPE-
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 Constructor Description GFPDTrueTypeFont(PDTrueTypeFont font, RenderingMode renderingMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetdifferencesAreUnicodeCompliant()and the embedded font program contains the Microsoft Unicode (3,1 - Platform ID=3, Encoding ID=1) cmap subtableBooleangetisStandard()true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference-
Methods inherited from class org.verapdf.gf.model.impl.pd.font.GFPDSimpleFont
getcontainsDifferences, getEncoding, getFirstChar, getLastChar, getWidths_size
-
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
-
Methods inherited from interface org.verapdf.model.pdlayer.PDSimpleFont
getcontainsDifferences, getEncoding, getFirstChar, getLastChar, getWidths_size
-
-
-
-
Field Detail
-
TRUETYPE_FONT_TYPE
public static final String TRUETYPE_FONT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFPDTrueTypeFont
public GFPDTrueTypeFont(PDTrueTypeFont font, RenderingMode renderingMode)
-
-
Method Detail
-
getdifferencesAreUnicodeCompliant
public Boolean getdifferencesAreUnicodeCompliant()
Description copied from interface:PDTrueTypeFontand the embedded font program contains the Microsoft Unicode (3,1 - Platform ID=3, Encoding ID=1) cmap subtable- Specified by:
getdifferencesAreUnicodeCompliantin interfacePDTrueTypeFont- Returns:
- true if all glyph names in the differences array of the Encoding dictionary are a part of the Adobe Glyph List and the embedded font program contains the Microsoft Unicode (3,1 - Platform ID=3, Encoding ID=1) cmap subtable.
-
getisStandard
public Boolean getisStandard()
true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference- Specified by:
getisStandardin interfacePDSimpleFont- Specified by:
getisStandardin classGFPDSimpleFont- Returns:
- true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference.
-
-