Class GFTrueTypeFontProgram
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.external.GFExternal
-
- org.verapdf.gf.model.impl.external.GFFontProgram
-
- org.verapdf.gf.model.impl.external.GFTrueTypeFontProgram
-
- All Implemented Interfaces:
Object
,External
,FontProgram
,TrueTypeFontProgram
public class GFTrueTypeFontProgram extends GFFontProgram implements TrueTypeFontProgram
Instance of this class represents TrueType font program embedded into PDF document.- Author:
- Sergey Shemyakov
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRUE_TYPE_PROGRAM_TYPE
Type name for GFTrueTypeFontProgram-
Fields inherited from class org.verapdf.gf.model.impl.external.GFFontProgram
FONT_PROGRAM_TYPE
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFTrueTypeFontProgram(FontProgram trueTypeFont)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getcmap10Present()
true if the font program contains the Macintosh Roman (1,0 – Platform ID=1, Encoding ID=0) cmap subtableBoolean
getcmap30Present()
true if the font program contains the Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) cmap subtableBoolean
getcmap31Present()
true if the font program contains the Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1) cmap subtableBoolean
getisSymbolic()
true / false if the corresponding PDF Font is marked as symbolic / non-symbolic in its font dictionaryLong
getnrCmaps()
number of cmap subtables in the font program-
Methods inherited from class org.verapdf.gf.model.impl.external.GFFontProgram
getID
-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinkedObjects, 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
-
-
-
-
Field Detail
-
TRUE_TYPE_PROGRAM_TYPE
public static final String TRUE_TYPE_PROGRAM_TYPE
Type name for GFTrueTypeFontProgram- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFTrueTypeFontProgram
public GFTrueTypeFontProgram(FontProgram trueTypeFont)
-
-
Method Detail
-
getisSymbolic
public Boolean getisSymbolic()
Description copied from interface:TrueTypeFontProgram
true / false if the corresponding PDF Font is marked as symbolic / non-symbolic in its font dictionary- Specified by:
getisSymbolic
in interfaceTrueTypeFontProgram
- Returns:
- true / false if the corresponding PDF Font is marked as symbolic / non-symbolic in its font dictionary.
-
getnrCmaps
public Long getnrCmaps()
Description copied from interface:TrueTypeFontProgram
number of cmap subtables in the font program- Specified by:
getnrCmaps
in interfaceTrueTypeFontProgram
- Returns:
- number of cmap subtables in the font program.
-
getcmap30Present
public Boolean getcmap30Present()
Description copied from interface:TrueTypeFontProgram
true if the font program contains the Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) cmap subtable- Specified by:
getcmap30Present
in interfaceTrueTypeFontProgram
- Returns:
- true if the font program contains the Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) cmap subtable.
-
getcmap31Present
public Boolean getcmap31Present()
Description copied from interface:TrueTypeFontProgram
true if the font program contains the Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1) cmap subtable- Specified by:
getcmap31Present
in interfaceTrueTypeFontProgram
- Returns:
- true if the font program contains the Microsoft Symbol (3,1 – Platform ID=3, Encoding ID=1) cmap subtable.
-
getcmap10Present
public Boolean getcmap10Present()
Description copied from interface:TrueTypeFontProgram
true if the font program contains the Macintosh Roman (1,0 – Platform ID=1, Encoding ID=0) cmap subtable- Specified by:
getcmap10Present
in interfaceTrueTypeFontProgram
- Returns:
- true if the font program contains the Microsoft Symbol (1,0 – Platform ID=1, Encoding ID=0) cmap subtable.
-
-