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:
java.lang.Comparable
,GlyphDefinition
- Enclosing class:
- GlyphDefinitionTable
private static class GlyphDefinitionTable.GlyphClassSubtableFormat1 extends GlyphDefinitionTable.GlyphClassSubtable
-
-
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 GlyphClassSubtableFormat1(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
getGlyphClass(int gid)
Determine glyph class.boolean
isCompatible(GlyphSubtable subtable)
Determine if a glyph subtable is compatible with this glyph subtable.boolean
isGlyphClass(int gid, int gc)
Determine if glyph belongs to pre-defined glyph class.-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphDefinitionTable.GlyphClassSubtable
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
-
GlyphClassSubtableFormat1
GlyphClassSubtableFormat1(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
-
isGlyphClass
public boolean isGlyphClass(int gid, int gc)
Determine if glyph belongs to pre-defined glyph class.- Specified by:
isGlyphClass
in 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:
getGlyphClass
in 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).
-
-