Class GFGlyph
java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.operator.textshow.GFGlyph
- Direct Known Subclasses:
GFCIDGlyph
Represents glyph used in text.
- Author:
- Sergey Shemyakov
-
Field Summary
FieldsFields inherited from class org.verapdf.model.GenericModelObject
contextDependent -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent) protectedGFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent, String type) -
Method Summary
Modifier and TypeMethodDescriptiontrue if an ActualText entry is present for this glyphtrue if an Alt entry is present for this glyphstatic GlyphgetGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent) getID()true if glyph is present in the font programtrue if this glyph is a real contentgetname()glyph name, or empty string if the glyph is not identified by the name (as in case of CID fonts)value of the rendering mode at the moment the glyph is shownunicode value of the glyphtrue if toUnicode value contains codes from Unicode Private Use Areawidth of the glyph specified in the Font dictionarywidth of the glyph in the embedded font programMethods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinkedObjects, 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, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Field Details
-
GLYPH_TYPE
- See Also:
-
-
Constructor Details
-
GFGlyph
protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent) -
GFGlyph
protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent, String type)
-
-
Method Details
-
getGlyph
public static Glyph getGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent) -
getname
Description copied from interface:Glyphglyph name, or empty string if the glyph is not identified by the name (as in case of CID fonts) -
getwidthFromDictionary
Description copied from interface:Glyphwidth of the glyph specified in the Font dictionary- Specified by:
getwidthFromDictionaryin interfaceGlyph
-
getwidthFromFontProgram
Description copied from interface:Glyphwidth of the glyph in the embedded font program- Specified by:
getwidthFromFontProgramin interfaceGlyph
-
getisGlyphPresent
Description copied from interface:Glyphtrue if glyph is present in the font program- Specified by:
getisGlyphPresentin interfaceGlyph
-
gettoUnicode
Description copied from interface:Glyphunicode value of the glyph- Specified by:
gettoUnicodein interfaceGlyph
-
getrenderingMode
Description copied from interface:Glyphvalue of the rendering mode at the moment the glyph is shown- Specified by:
getrenderingModein interfaceGlyph
-
getID
- Specified by:
getIDin interfaceObject- Overrides:
getIDin classGenericModelObject- Returns:
- id of the current object
-
getunicodePUA
Description copied from interface:Glyphtrue if toUnicode value contains codes from Unicode Private Use Area- Specified by:
getunicodePUAin interfaceGlyph
-
getactualTextPresent
Description copied from interface:Glyphtrue if an ActualText entry is present for this glyph- Specified by:
getactualTextPresentin interfaceGlyph
-
getaltPresent
Description copied from interface:Glyphtrue if an Alt entry is present for this glyph- Specified by:
getaltPresentin interfaceGlyph
-
getisRealContent
Description copied from interface:Glyphtrue if this glyph is a real content- Specified by:
getisRealContentin interfaceGlyph
-