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:
java.lang.Comparable
,GlyphDefinition
- Enclosing class:
- GlyphDefinitionTable
private static class GlyphDefinitionTable.MarkAttachmentSubtableFormat1 extends GlyphDefinitionTable.MarkAttachmentSubtable
-
-
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
Constructors Constructor Description MarkAttachmentSubtableFormat1(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping, java.util.List entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
getEntries()
int
getMarkAttachClass(int gid)
Determine mark attachment class.boolean
isCompatible(GlyphSubtable subtable)
Determine if a glyph subtable is compatible with this glyph subtable.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.GlyphDefinitionTable.MarkAttachmentSubtable
create, getType
-
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, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, hashCode, resolveLookupReferences, setTable, usesReverseScan
-
-
-
-
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 classGlyphSubtable
- 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 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:
isMarkAttachClass
in 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:
getMarkAttachClass
in classGlyphDefinitionTable.MarkAttachmentSubtable
- Parameters:
gid
- a glyph identifier (index)- Returns:
- a non-negative mark attachment class, or -1 if no class defined
-
-