Class GlyphDefinitionTable.GlyphClassSubtableFormat1

All Implemented Interfaces:
Comparable, GlyphDefinition
Enclosing class:
GlyphDefinitionTable

private static class GlyphDefinitionTable.GlyphClassSubtableFormat1 extends GlyphDefinitionTable.GlyphClassSubtable
  • Constructor Details

    • GlyphClassSubtableFormat1

      GlyphClassSubtableFormat1(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries)
  • Method Details

    • getEntries

      public List getEntries()
      Specified by:
      getEntries in class GlyphSubtable
      Returns:
      this subtable's lookup entries
    • isCompatible

      public boolean isCompatible(GlyphSubtable subtable)
      Determine if a glyph subtable is compatible with this glyph subtable. Two glyph subtables are compatible if the both may appear in a single lookup table.
      Specified by:
      isCompatible in class GlyphSubtable
      Parameters:
      subtable - a glyph subtable to determine compatibility
      Returns:
      true if specified subtable is compatible with this glyph subtable, where by compatible is meant that they share the same lookup type
    • isGlyphClass

      public boolean isGlyphClass(int gid, int gc)
      Determine if glyph belongs to pre-defined glyph class.
      Specified by:
      isGlyphClass in class GlyphDefinitionTable.GlyphClassSubtable
      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 int getGlyphClass(int gid)
      Determine glyph class.
      Specified by:
      getGlyphClass in class GlyphDefinitionTable.GlyphClassSubtable
      Parameters:
      gid - a glyph identifier (index)
      Returns:
      a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).