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:
java.lang.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
Constructors Constructor Description GlyphClassSubtable(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping, java.util.List entries)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static GlyphDefinitionSubtable
create(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping, java.util.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 Detail
-
GlyphClassSubtable
GlyphClassSubtable(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping, java.util.List entries)
-
-
Method Detail
-
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(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping, java.util.List entries)
-
-