Class GlyphDefinitionTable.MarkAttachmentSubtableFormat1

    • Constructor Detail

      • MarkAttachmentSubtableFormat1

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

      • getEntries

        public java.util.List getEntries()
        Specified by:
        getEntries in class GlyphSubtable
        Returns:
        this subtable's lookup entries
      • 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.
        Specified by:
        isCompatible in class GlyphSubtable
        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
      • isMarkAttachClass

        public boolean isMarkAttachClass​(int gid,
                                         int mac)
        Determine if glyph belongs to (font specific) mark attachment class.
        Specified by:
        isMarkAttachClass in class GlyphDefinitionTable.MarkAttachmentSubtable
        Parameters:
        gid - a glyph identifier (index)
        mac - a (font specific) mark attachment class
        Returns:
        true if glyph belongs to specified mark attachment class