Class GlyphDefinitionTable.GlyphClassSubtable

    • Constructor Detail

      • GlyphClassSubtable

        GlyphClassSubtable​(java.lang.String id,
                           int sequence,
                           int flags,
                           int format,
                           GlyphMappingTable mapping,
                           java.util.List entries)
    • Method Detail

      • getType

        public int getType()
        Specified by:
        getType in class GlyphSubtable
        Returns:
        this subtable's type
      • isGlyphClass

        public abstract boolean isGlyphClass​(int gid,
                                             int gc)
        Determine if glyph belongs to pre-defined glyph class.
        Parameters:
        gid - a glyph identifier (index)
        gc - a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).
        Returns:
        true if glyph belongs to specified glyph class
      • getGlyphClass

        public abstract int getGlyphClass​(int gid)
        Determine glyph class.
        Parameters:
        gid - a glyph identifier (index)
        Returns:
        a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).