Class GlyphDefinitionTable.MarkAttachmentSubtable

    • Constructor Detail

      • MarkAttachmentSubtable

        MarkAttachmentSubtable​(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
      • isMarkAttachClass

        public abstract boolean isMarkAttachClass​(int gid,
                                                  int mac)
        Determine if glyph belongs to (font specific) mark attachment class.
        Parameters:
        gid - a glyph identifier (index)
        mac - a (font specific) mark attachment class
        Returns:
        true if glyph belongs to specified mark attachment class
      • getMarkAttachClass

        public abstract int getMarkAttachClass​(int gid)
        Determine mark attachment class.
        Parameters:
        gid - a glyph identifier (index)
        Returns:
        a non-negative mark attachment class, or -1 if no class defined