Class GlyphTable.UseSpec
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphTable.UseSpec
- All Implemented Interfaces:
Comparable
- Enclosing class:
GlyphTable
The
UseSpec class comprises a lookup table reference
and the feature that selected the lookup table.-
Constructor Summary
ConstructorsConstructorDescriptionUseSpec(GlyphTable.LookupTable lookupTable, String feature) Construct a glyph lookup table use specification. -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()booleanposition(GlyphSequence gs, String script, String language, int fontSize, int[] widths, int[][] adjustments, ScriptContextTester sct) Perform positioning processing using this use specification's lookup table.substitute(GlyphSequence gs, String script, String language, ScriptContextTester sct) Perform substitution processing using this use specification's lookup table.
-
Constructor Details
-
UseSpec
Construct a glyph lookup table use specification.- Parameters:
lookupTable- a glyph lookup tablefeature- a feature that caused lookup table selection
-
-
Method Details
-
getLookupTable
- Returns:
- the lookup table
-
getFeature
- Returns:
- the feature that selected this lookup table
-
substitute
public GlyphSequence substitute(GlyphSequence gs, String script, String language, ScriptContextTester sct) Perform substitution processing using this use specification's lookup table.- Parameters:
gs- an input glyph sequencescript- a script identifierlanguage- a language identifiersct- a script specific context tester (or null)- Returns:
- the substituted (output) glyph sequence
-
position
public boolean position(GlyphSequence gs, String script, String language, int fontSize, int[] widths, int[][] adjustments, ScriptContextTester sct) Perform positioning processing using this use specification's lookup table.- Parameters:
gs- an input glyph sequencescript- a script identifierlanguage- a language identifierfontSize- size in device unitswidths- array of default advancements for each glyph in fontadjustments- accumulated adjustments array (sequence) of 4-tuples of placement [PX,PY] and advance [AX,AY] adjustments, in that order, with one 4-tuple for each element of glyph sequencesct- a script specific context tester (or null)- Returns:
- true if some adjustment is not zero; otherwise, false
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable
-