Class GlyphDefinitionTable.MarkAttachmentSubtable
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.MarkAttachmentSubtable
- All Implemented Interfaces:
Comparable
,GlyphDefinition
- Direct Known Subclasses:
GlyphDefinitionTable.MarkAttachmentSubtableFormat1
- Enclosing class:
GlyphDefinitionTable
private abstract static class GlyphDefinitionTable.MarkAttachmentSubtable
extends GlyphDefinitionSubtable
-
Field Summary
Fields inherited from class org.apache.fop.complexscripts.fonts.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
ConstructorsConstructorDescriptionMarkAttachmentSubtable
(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries) -
Method Summary
Modifier and TypeMethodDescription(package private) static GlyphDefinitionSubtable
create
(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries) abstract int
getMarkAttachClass
(int gid) Determine mark attachment class.int
getType()
abstract boolean
isMarkAttachClass
(int gid, int mac) Determine if glyph belongs to (font specific) mark attachment class.Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable
getTableType, getTypeName, hasDefinition, usesReverseScan
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubtable
compareTo, equals, getClasses, getCoverage, getCoverageIndex, getCoverageSize, getEntries, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, hashCode, isCompatible, resolveLookupReferences, setTable, usesReverseScan
-
Constructor Details
-
MarkAttachmentSubtable
MarkAttachmentSubtable(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries)
-
-
Method Details
-
getType
public int getType()- Specified by:
getType
in classGlyphSubtable
- 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
-
create
static GlyphDefinitionSubtable create(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries)
-