Class GlyphDefinitionTable.MarkAttachmentSubtableFormat1
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.MarkAttachmentSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.MarkAttachmentSubtableFormat1
- All Implemented Interfaces:
Comparable, GlyphDefinition
- Enclosing class:
GlyphDefinitionTable
private static class GlyphDefinitionTable.MarkAttachmentSubtableFormat1
extends GlyphDefinitionTable.MarkAttachmentSubtable
-
Field Summary
Fields inherited from class GlyphSubtable
LF_IGNORE_BASE, LF_IGNORE_LIGATURE, LF_IGNORE_MARK, LF_INTERNAL_USE_REVERSE_SCAN, LF_MARK_ATTACHMENT_TYPE, LF_RESERVED, LF_RIGHT_TO_LEFT, LF_USE_MARK_FILTERING_SET -
Constructor Summary
ConstructorsConstructorDescriptionMarkAttachmentSubtableFormat1(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries) -
Method Summary
Modifier and TypeMethodDescriptionintgetMarkAttachClass(int gid) Determine mark attachment class.booleanisCompatible(GlyphSubtable subtable) Determine if a glyph subtable is compatible with this glyph subtable.booleanisMarkAttachClass(int gid, int mac) Determine if glyph belongs to (font specific) mark attachment class.Methods inherited from class GlyphDefinitionTable.MarkAttachmentSubtable
create, getTypeMethods inherited from class GlyphDefinitionSubtable
getTableType, getTypeName, hasDefinition, usesReverseScanMethods inherited from class GlyphSubtable
compareTo, equals, getClasses, getCoverage, getCoverageIndex, getCoverageSize, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, hashCode, resolveLookupReferences, setTable, usesReverseScan
-
Constructor Details
-
MarkAttachmentSubtableFormat1
MarkAttachmentSubtableFormat1(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries)
-
-
Method Details
-
getEntries
- Specified by:
getEntriesin classGlyphSubtable- Returns:
- this subtable's lookup entries
-
isCompatible
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:
isCompatiblein classGlyphSubtable- 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:
isMarkAttachClassin classGlyphDefinitionTable.MarkAttachmentSubtable- 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 int getMarkAttachClass(int gid) Determine mark attachment class.- Specified by:
getMarkAttachClassin classGlyphDefinitionTable.MarkAttachmentSubtable- Parameters:
gid- a glyph identifier (index)- Returns:
- a non-negative mark attachment class, or -1 if no class defined
-