Class GlyphSubstitutionTable.ChainedContextualSubtableFormat2
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphSubtable
org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable
org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.ChainedContextualSubtable
org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.ChainedContextualSubtableFormat2
- All Implemented Interfaces:
Comparable, GlyphSubstitution
- Enclosing class:
GlyphSubstitutionTable
private static class GlyphSubstitutionTable.ChainedContextualSubtableFormat2
extends GlyphSubstitutionTable.ChainedContextualSubtable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GlyphClassTableprivate GlyphClassTableprivate GlyphClassTableprivate intprivate GlyphTable.RuleSet[]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
ConstructorsConstructorDescriptionChainedContextualSubtableFormat2(String id, int sequence, int flags, int format, GlyphCoverageTable coverage, List entries) -
Method Summary
Modifier and TypeMethodDescriptiongetLookups(int ci, int gi, GlyphSubstitutionState ss, int[] rv) Obtain rule lookups set associated current input glyph context.private booleanmatches(GlyphSubstitutionState ss, GlyphClassTable cdt, int[] classes, int offset, int[] rv) private voidvoidresolveLookupReferences(Map<String, GlyphTable.LookupTable> lookupTables) Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.Methods inherited from class GlyphSubstitutionTable.ChainedContextualSubtable
create, getType, isCompatible, substituteMethods inherited from class GlyphSubstitutionSubtable
getTableType, getTypeName, substitute, substitute, usesReverseScanMethods inherited from class GlyphSubtable
compareTo, equals, getClasses, getCoverage, getCoverageIndex, getCoverageSize, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, hashCode, setTable, usesReverseScan
-
Field Details
-
icdt
-
bcdt
-
lcdt
-
ngc
private int ngc -
rsa
-
-
Constructor Details
-
ChainedContextualSubtableFormat2
ChainedContextualSubtableFormat2(String id, int sequence, int flags, int format, GlyphCoverageTable coverage, List entries)
-
-
Method Details
-
getEntries
- Specified by:
getEntriesin classGlyphSubtable- Returns:
- this subtable's lookup entries
-
getLookups
Obtain rule lookups set associated current input glyph context.- Specified by:
getLookupsin classGlyphSubstitutionTable.ChainedContextualSubtable- Parameters:
ci- coverage index of glyph at current positiongi- glyph index of glyph at current positionss- glyph substitution staterv- array of ints used to receive multiple return values, must be of length 1 or greater- Returns:
- array of rule lookups or null if none applies
-
matches
private boolean matches(GlyphSubstitutionState ss, GlyphClassTable cdt, int[] classes, int offset, int[] rv) -
resolveLookupReferences
Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.- Overrides:
resolveLookupReferencesin classGlyphSubtable- Parameters:
lookupTables- map from lookup table identifers, e.g. "lu4", to lookup tables
-
populate
-