Class GFGlyph
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.operator.textshow.GFGlyph
-
- Direct Known Subclasses:
GFCIDGlyph
public class GFGlyph extends GenericModelObject implements Glyph
Represents glyph used in text.- Author:
- Sergey Shemyakov
-
-
Field Summary
Fields Modifier and Type Field Description static String
GLYPH_TYPE
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)
protected
GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getactualTextPresent()
true if an ActualText entry is present for this glyphstatic Glyph
getGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)
String
getID()
Boolean
getisGlyphPresent()
true if glyph is present in the font programString
getname()
glyph name, or empty string if the glyph is not identified by the name (as in case of CID fonts)Long
getrenderingMode()
value of the rendering mode at the moment the glyph is shownString
gettoUnicode()
unicode value of the glyphBoolean
getunicodePUA()
true if toUnicode value contains codes from Unicode Private Use AreaDouble
getwidthFromDictionary()
width of the glyph specified in the Font dictionaryDouble
getwidthFromFontProgram()
width of the glyph in the embedded font program-
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, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
GLYPH_TYPE
public static final String GLYPH_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFGlyph
protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)
-
GFGlyph
protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, String type)
-
-
Method Detail
-
getGlyph
public static Glyph getGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)
-
getname
public String getname()
Description copied from interface:Glyph
glyph name, or empty string if the glyph is not identified by the name (as in case of CID fonts)
-
getwidthFromDictionary
public Double getwidthFromDictionary()
Description copied from interface:Glyph
width of the glyph specified in the Font dictionary- Specified by:
getwidthFromDictionary
in interfaceGlyph
-
getwidthFromFontProgram
public Double getwidthFromFontProgram()
Description copied from interface:Glyph
width of the glyph in the embedded font program- Specified by:
getwidthFromFontProgram
in interfaceGlyph
-
getisGlyphPresent
public Boolean getisGlyphPresent()
Description copied from interface:Glyph
true if glyph is present in the font program- Specified by:
getisGlyphPresent
in interfaceGlyph
-
gettoUnicode
public String gettoUnicode()
Description copied from interface:Glyph
unicode value of the glyph- Specified by:
gettoUnicode
in interfaceGlyph
-
getrenderingMode
public Long getrenderingMode()
Description copied from interface:Glyph
value of the rendering mode at the moment the glyph is shown- Specified by:
getrenderingMode
in interfaceGlyph
-
getID
public String getID()
- Specified by:
getID
in interfaceObject
- Overrides:
getID
in classGenericModelObject
- Returns:
- id of the current object
-
getunicodePUA
public Boolean getunicodePUA()
Description copied from interface:Glyph
true if toUnicode value contains codes from Unicode Private Use Area- Specified by:
getunicodePUA
in interfaceGlyph
-
getactualTextPresent
public Boolean getactualTextPresent()
Description copied from interface:Glyph
true if an ActualText entry is present for this glyph- Specified by:
getactualTextPresent
in interfaceGlyph
-
-