Class GlyphDefinitionTable.GlyphClassSubtable
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.GlyphClassSubtable
- All Implemented Interfaces:
Comparable
,GlyphDefinition
- Direct Known Subclasses:
GlyphDefinitionTable.GlyphClassSubtableFormat1
- Enclosing class:
- GlyphDefinitionTable
private abstract static class GlyphDefinitionTable.GlyphClassSubtable
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
ConstructorsConstructorDescriptionGlyphClassSubtable
(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
getGlyphClass
(int gid) Determine glyph class.int
getType()
abstract boolean
isGlyphClass
(int gid, int gc) Determine if glyph belongs to pre-defined glyph 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
-
GlyphClassSubtable
GlyphClassSubtable(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
-
isGlyphClass
public abstract boolean isGlyphClass(int gid, int gc) Determine if glyph belongs to pre-defined glyph class.- Parameters:
gid
- a glyph identifier (index)gc
- a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).- Returns:
- true if glyph belongs to specified glyph class
-
getGlyphClass
public abstract int getGlyphClass(int gid) Determine glyph class.- Parameters:
gid
- a glyph identifier (index)- Returns:
- a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).
-
create
static GlyphDefinitionSubtable create(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries)
-