Class GlyphPositioningTable.CursiveSubtable

    • Constructor Detail

      • CursiveSubtable

        CursiveSubtable​(java.lang.String id,
                        int sequence,
                        int flags,
                        int format,
                        GlyphCoverageTable coverage,
                        java.util.List entries)
    • Method Detail

      • 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.
      • getExitEntryAnchors

        public abstract GlyphPositioningTable.Anchor[] getExitEntryAnchors​(int ci1,
                                                                           int ci2)
        Obtain exit anchor for first glyph with coverage index ci1 and entry anchor for second glyph with coverage index ci2.
        Parameters:
        ci1 - coverage index of first glyph (may be negative)
        ci2 - coverage index of second glyph (may be negative)
        Returns:
        array of two anchors or null if either coverage index is negative or corresponding anchor is missing, where the first entry is the exit anchor of the first glyph and the second entry is the entry anchor of the second glyph