public static class GlyphTable.UseSpec extends Object implements Comparable
UseSpec
class comprises a lookup table reference
and the feature that selected the lookup table.Constructor and Description |
---|
UseSpec(GlyphTable.LookupTable lookupTable,
String feature)
Construct a glyph lookup table use specification.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
String |
getFeature() |
GlyphTable.LookupTable |
getLookupTable() |
int |
hashCode() |
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.
|
GlyphSequence |
substitute(GlyphSequence gs,
String script,
String language,
ScriptContextTester sct)
Perform substitution processing using this use specification's lookup table.
|
public UseSpec(GlyphTable.LookupTable lookupTable, String feature)
lookupTable
- a glyph lookup tablefeature
- a feature that caused lookup table selectionpublic GlyphTable.LookupTable getLookupTable()
public String getFeature()
public GlyphSequence substitute(GlyphSequence gs, String script, 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, String script, 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 compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2025 Apache Software Foundation. All rights reserved.