Class GlyphDefinitionTable.GlyphClassSubtableFormat1
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.GlyphClassSubtable
org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.GlyphClassSubtableFormat1
- All Implemented Interfaces:
Comparable, GlyphDefinition
- Enclosing class:
GlyphDefinitionTable
private static class GlyphDefinitionTable.GlyphClassSubtableFormat1
extends GlyphDefinitionTable.GlyphClassSubtable
-
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
ConstructorsConstructorDescriptionGlyphClassSubtableFormat1(String id, int sequence, int flags, int format, GlyphMappingTable mapping, List entries) -
Method Summary
Modifier and TypeMethodDescriptionintgetGlyphClass(int gid) Determine glyph class.booleanisCompatible(GlyphSubtable subtable) Determine if a glyph subtable is compatible with this glyph subtable.booleanisGlyphClass(int gid, int gc) Determine if glyph belongs to pre-defined glyph class.Methods inherited from class GlyphDefinitionTable.GlyphClassSubtable
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
-
GlyphClassSubtableFormat1
GlyphClassSubtableFormat1(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
-
isGlyphClass
public boolean isGlyphClass(int gid, int gc) Determine if glyph belongs to pre-defined glyph class.- Specified by:
isGlyphClassin classGlyphDefinitionTable.GlyphClassSubtable- 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 int getGlyphClass(int gid) Determine glyph class.- Specified by:
getGlyphClassin classGlyphDefinitionTable.GlyphClassSubtable- Parameters:
gid- a glyph identifier (index)- Returns:
- a pre-defined glyph class (GLYPH_CLASS_BASE|GLYPH_CLASS_LIGATURE|GLYPH_CLASS_MARK|GLYPH_CLASS_COMPONENT).
-