Class GlyphDefinitionTable.GlyphClassSubtable

All Implemented Interfaces:
Comparable, GlyphDefinition
Direct Known Subclasses:
GlyphDefinitionTable.GlyphClassSubtableFormat1
Enclosing class:
GlyphDefinitionTable

private abstract static class GlyphDefinitionTable.GlyphClassSubtable extends GlyphDefinitionSubtable
  • Constructor Details

  • Method Details

    • getType

      public int getType()
      Specified by:
      getType in class GlyphSubtable
      Returns:
      this subtable's type
    • isGlyphClass

      public abstract boolean isGlyphClass(int gid, int gc)
      Determine if glyph belongs to pre-defined glyph class.
      Parameters:
      gid - a glyph identifier (index)
      gc - a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).
      Returns:
      true if glyph belongs to specified glyph class
    • getGlyphClass

      public abstract int getGlyphClass(int gid)
      Determine glyph class.
      Parameters:
      gid - a glyph identifier (index)
      Returns:
      a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).
    • create

      static GlyphDefinitionSubtable create(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries)