public static class GlyphTable.UseSpec
extends java.lang.Object
implements java.lang.Comparable
UseSpec class comprises a lookup table reference
and the feature that selected the lookup table.| Constructor and Description |
|---|
UseSpec(GlyphTable.LookupTable lookupTable,
java.lang.String feature)
Construct a glyph lookup table use specification.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFeature() |
GlyphTable.LookupTable |
getLookupTable() |
int |
hashCode() |
boolean |
position(GlyphSequence gs,
java.lang.String script,
java.lang.String language,
int fontSize,
int[] widths,
int[][] adjustments,
ScriptContextTester sct)
Perform positioning processing using this use specification's lookup table.
|
GlyphSequence |
substitute(GlyphSequence gs,
java.lang.String script,
java.lang.String language,
ScriptContextTester sct)
Perform substitution processing using this use specification's lookup table.
|
public UseSpec(GlyphTable.LookupTable lookupTable, java.lang.String feature)
lookupTable - a glyph lookup tablefeature - a feature that caused lookup table selectionpublic GlyphTable.LookupTable getLookupTable()
public java.lang.String getFeature()
public GlyphSequence substitute(GlyphSequence gs, java.lang.String script, java.lang.String language, ScriptContextTester sct)
gs - an input glyph sequencescript - a script identifierlanguage - a language identifiersct - a script specific context tester (or null)public boolean position(GlyphSequence gs, java.lang.String script, java.lang.String language, int fontSize, int[] widths, int[][] adjustments, ScriptContextTester sct)
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)public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.