Class GlyphDefinitionTable.MarkAttachmentSubtableFormat1

All Implemented Interfaces:
Comparable, GlyphDefinition
Enclosing class:
GlyphDefinitionTable

private static class GlyphDefinitionTable.MarkAttachmentSubtableFormat1 extends GlyphDefinitionTable.MarkAttachmentSubtable
  • Constructor Details

    • MarkAttachmentSubtableFormat1

      MarkAttachmentSubtableFormat1(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
    • isMarkAttachClass

      public boolean isMarkAttachClass(int gid, int mac)
      Determine if glyph belongs to (font specific) mark attachment class.
      Specified by:
      isMarkAttachClass in class GlyphDefinitionTable.MarkAttachmentSubtable
      Parameters:
      gid - a glyph identifier (index)
      mac - a (font specific) mark attachment class
      Returns:
      true if glyph belongs to specified mark attachment class
    • getMarkAttachClass

      public int getMarkAttachClass(int gid)
      Determine mark attachment class.
      Specified by:
      getMarkAttachClass in class GlyphDefinitionTable.MarkAttachmentSubtable
      Parameters:
      gid - a glyph identifier (index)
      Returns:
      a non-negative mark attachment class, or -1 if no class defined