java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.operator.textshow.GFGlyph
All Implemented Interfaces:
Object, Glyph
Direct Known Subclasses:
GFCIDGlyph

public class GFGlyph extends GenericModelObject implements Glyph
Represents glyph used in text.
Author:
Sergey Shemyakov
  • Field Details

  • Constructor Details

  • Method Details

    • getGlyph

      public static Glyph getGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, boolean isRealContent)
    • 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)
      Specified by:
      getname in interface Glyph
    • getwidthFromDictionary

      public Double getwidthFromDictionary()
      Description copied from interface: Glyph
      width of the glyph specified in the Font dictionary
      Specified by:
      getwidthFromDictionary in interface Glyph
    • getwidthFromFontProgram

      public Double getwidthFromFontProgram()
      Description copied from interface: Glyph
      width of the glyph in the embedded font program
      Specified by:
      getwidthFromFontProgram in interface Glyph
    • getisGlyphPresent

      public Boolean getisGlyphPresent()
      Description copied from interface: Glyph
      true if glyph is present in the font program
      Specified by:
      getisGlyphPresent in interface Glyph
    • gettoUnicode

      public String gettoUnicode()
      Description copied from interface: Glyph
      unicode value of the glyph
      Specified by:
      gettoUnicode in interface Glyph
    • 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 interface Glyph
    • getID

      public String getID()
      Specified by:
      getID in interface Object
      Overrides:
      getID in class GenericModelObject
      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 interface Glyph
    • getactualTextPresent

      public Boolean getactualTextPresent()
      Description copied from interface: Glyph
      true if an ActualText entry is present for this glyph
      Specified by:
      getactualTextPresent in interface Glyph
    • getaltPresent

      public Boolean getaltPresent()
      Description copied from interface: Glyph
      true if an Alt entry is present for this glyph
      Specified by:
      getaltPresent in interface Glyph
    • getisRealContent

      public Boolean getisRealContent()
      Description copied from interface: Glyph
      true if this glyph is a real content
      Specified by:
      getisRealContent in interface Glyph