Class GlyphSubstitutionTable.ContextualSubtableFormat3
- java.lang.Object
-
- org.apache.fop.complexscripts.fonts.GlyphSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.ContextualSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.ContextualSubtableFormat3
-
- All Implemented Interfaces:
java.lang.Comparable
,GlyphSubstitution
- Enclosing class:
- GlyphSubstitutionTable
private static class GlyphSubstitutionTable.ContextualSubtableFormat3 extends GlyphSubstitutionTable.ContextualSubtable
-
-
Field Summary
Fields Modifier and Type Field Description private GlyphTable.RuleSet[]
rsa
-
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 ContextualSubtableFormat3(java.lang.String id, int sequence, int flags, int format, GlyphCoverageTable coverage, java.util.List entries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
getEntries()
GlyphTable.RuleLookup[]
getLookups(int ci, int gi, GlyphSubstitutionState ss, int[] rv)
Obtain rule lookups set associated current input glyph context.(package private) static boolean
matches(GlyphSubstitutionState ss, GlyphCoverageTable[] gca, int offset, int[] rv)
private void
populate(java.util.List entries)
void
resolveLookupReferences(java.util.Map<java.lang.String,GlyphTable.LookupTable> lookupTables)
Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.ContextualSubtable
create, getType, isCompatible, substitute
-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable
getTableType, getTypeName, substitute, substitute, 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, setTable, usesReverseScan
-
-
-
-
Field Detail
-
rsa
private GlyphTable.RuleSet[] rsa
-
-
Constructor Detail
-
ContextualSubtableFormat3
ContextualSubtableFormat3(java.lang.String id, int sequence, int flags, int format, GlyphCoverageTable coverage, java.util.List entries)
-
-
Method Detail
-
getEntries
public java.util.List getEntries()
- Specified by:
getEntries
in classGlyphSubtable
- Returns:
- this subtable's lookup entries
-
resolveLookupReferences
public void resolveLookupReferences(java.util.Map<java.lang.String,GlyphTable.LookupTable> lookupTables)
Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.- Overrides:
resolveLookupReferences
in classGlyphSubtable
- Parameters:
lookupTables
- map from lookup table identifers, e.g. "lu4", to lookup tables
-
getLookups
public GlyphTable.RuleLookup[] getLookups(int ci, int gi, GlyphSubstitutionState ss, int[] rv)
Obtain rule lookups set associated current input glyph context.- Specified by:
getLookups
in classGlyphSubstitutionTable.ContextualSubtable
- 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, where the first entry is used to return the input sequence length of the matched rule- Returns:
- array of rule lookups or null if none applies
-
matches
static boolean matches(GlyphSubstitutionState ss, GlyphCoverageTable[] gca, int offset, int[] rv)
-
populate
private void populate(java.util.List entries)
-
-