Class GlyphSubstitutionTable.SingleSubtableFormat2

    • Field Detail

      • glyphs

        private int[] glyphs
    • Constructor Detail

      • SingleSubtableFormat2

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

      • getEntries

        public java.util.List getEntries()
        Specified by:
        getEntries in class GlyphSubtable
        Returns:
        this subtable's lookup entries
      • getGlyphForCoverageIndex

        public int getGlyphForCoverageIndex​(int ci,
                                            int gi)
                                     throws java.lang.IllegalArgumentException
        Obtain glyph for coverage index.
        Specified by:
        getGlyphForCoverageIndex in class GlyphSubstitutionTable.SingleSubtable
        Parameters:
        ci - coverage index
        gi - original glyph index
        Returns:
        substituted glyph value
        Throws:
        java.lang.IllegalArgumentException - if coverage index is not valid
      • populate

        private void populate​(java.util.List entries)