Class GlyphSubstitutionTable.ContextualSubtableFormat1

All Implemented Interfaces:
Comparable, GlyphSubstitution
Enclosing class:
GlyphSubstitutionTable

private static class GlyphSubstitutionTable.ContextualSubtableFormat1 extends GlyphSubstitutionTable.ContextualSubtable
  • Field Details

  • Constructor Details

    • ContextualSubtableFormat1

      ContextualSubtableFormat1(String id, int sequence, int flags, int format, GlyphCoverageTable coverage, List entries)
  • Method Details

    • getEntries

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

      public void resolveLookupReferences(Map<String,GlyphTable.LookupTable> lookupTables)
      Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.
      Overrides:
      resolveLookupReferences in class GlyphSubtable
      Parameters:
      lookupTables - map from lookup table identifers, e.g. "lu4", to lookup tables
    • getLookups

      public GlyphTable.RuleLookup[] getLookups(int ci, int gi, GlyphSubstitutionState ss, int[] rv)
      Obtain rule lookups set associated current input glyph context.
      Specified by:
      getLookups in class GlyphSubstitutionTable.ContextualSubtable
      Parameters:
      ci - coverage index of glyph at current position
      gi - glyph index of glyph at current position
      ss - glyph substitution state
      rv - array of ints used to receive multiple return values, must be of length 1 or greater, where the first entry is used to return the input sequence length of the matched rule
      Returns:
      array of rule lookups or null if none applies
    • matches

      static boolean matches(GlyphSubstitutionState ss, int[] glyphs, int offset, int[] rv)
    • populate

      private void populate(List entries)