Class GlyphPositioningTable.MarkToMarkSubtable

All Implemented Interfaces:
Comparable, GlyphPositioning
Direct Known Subclasses:
GlyphPositioningTable.MarkToMarkSubtableFormat1
Enclosing class:
GlyphPositioningTable

private abstract static class GlyphPositioningTable.MarkToMarkSubtable extends GlyphPositioningSubtable
  • Constructor Details

  • Method Details

    • getType

      public int getType()
      Specified by:
      getType in class GlyphSubtable
      Returns:
      this subtable's type
    • 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.
      Overrides:
      isCompatible in class GlyphPositioningSubtable
      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
    • position

      public boolean position(GlyphPositioningState ps)
      Perform glyph positioning at the current index, mutating the positioning state object as required. Only the context associated with the current index is processed.
      Specified by:
      position in interface GlyphPositioning
      Overrides:
      position in class GlyphPositioningSubtable
      Parameters:
      ps - glyph positioning state object
      Returns:
      true if the glyph subtable applies, meaning that the current context matches the associated input context glyph coverage table; note that returning true does not mean any position adjustment occurred; it only means that no further glyph subtables for the current lookup table should be applied.
    • getMark1Anchor

      public abstract GlyphPositioningTable.MarkAnchor getMark1Anchor(int ciMark1, int giMark1)
      Obtain mark 1 anchor associated with mark 1 coverage index.
      Parameters:
      ciMark1 - mark 1 coverage index
      giMark1 - input glyph index of mark 1 glyph
      Returns:
      mark 1 anchor or null if none applies
    • getMark2Anchor

      public abstract GlyphPositioningTable.Anchor getMark2Anchor(int giBase, int markClass)
      Obtain anchor associated with mark 2 glyph index and mark 1 class.
      Parameters:
      markClass - class number of mark 1 glyph
      giMark2 - input glyph index of mark 2 glyph
      Returns:
      anchor or null if none applies
    • create

      static GlyphPositioningSubtable create(String id, int sequence, int flags, int format, GlyphCoverageTable coverage, List entries)