public class GlyphSubstitutionTable extends GlyphTable
The GlyphSubstitutionTable
class is a glyph table that implements
GlyphSubstitution
functionality.
This work was originally authored by Glenn Adams (gadams@apache.org).
Modifier and Type | Class and Description |
---|---|
static class |
GlyphSubstitutionTable.Ligature
The
Ligature class implements a ligature lookup result in terms of
a ligature glyph (code) and the N+1... |
static class |
GlyphSubstitutionTable.LigatureSet
The
LigatureSet class implements a set of ligatures. |
GlyphTable.ChainedClassSequenceRule, GlyphTable.ChainedCoverageSequenceRule, GlyphTable.ChainedGlyphSequenceRule, GlyphTable.ClassSequenceRule, GlyphTable.CoverageSequenceRule, GlyphTable.GlyphSequenceRule, GlyphTable.HomogeneousRuleSet, GlyphTable.LookupSpec, GlyphTable.LookupTable, GlyphTable.Rule, GlyphTable.RuleLookup, GlyphTable.RuleSet, GlyphTable.UseSpec
Modifier and Type | Field and Description |
---|---|
static int |
GSUB_LOOKUP_TYPE_ALTERNATE
alternate substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_CHAINED_CONTEXTUAL
chained contextual substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_CONTEXTUAL
contextual substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_EXTENSION_SUBSTITUTION
extension substitution substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_LIGATURE
ligature substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_MULTIPLE
multiple substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_REVERSE_CHAINED_SINGLE
reverse chained contextual single substitution subtable type
|
static int |
GSUB_LOOKUP_TYPE_SINGLE
single substitution subtable type
|
GLYPH_TABLE_TYPE_BASELINE, GLYPH_TABLE_TYPE_DEFINITION, GLYPH_TABLE_TYPE_JUSTIFICATION, GLYPH_TABLE_TYPE_POSITIONING, GLYPH_TABLE_TYPE_SUBSTITUTION, processors
Constructor and Description |
---|
GlyphSubstitutionTable(GlyphDefinitionTable gdef,
Map lookups,
List subtables,
Map<String,ScriptProcessor> processors)
Instantiate a
GlyphSubstitutionTable object using the specified lookups
and subtables. |
Modifier and Type | Method and Description |
---|---|
static GlyphSubtable |
createSubtable(int type,
String id,
int sequence,
int flags,
int format,
GlyphCoverageTable coverage,
List entries)
Create a substitution subtable according to the specified arguments.
|
static GlyphSubtable |
createSubtable(int type,
String id,
int sequence,
int flags,
int format,
List coverage,
List entries)
Create a substitution subtable according to the specified arguments.
|
static int |
getLookupTypeFromName(String name)
Map a lookup type name to its constant (integer) value.
|
static String |
getLookupTypeName(int type)
Map a lookup type constant (integer) value to its name.
|
CharSequence |
preProcess(CharSequence charSequence,
String script,
MultiByteFont font,
List associations) |
GlyphSequence |
substitute(GlyphSequence gs,
String script,
String language)
Perform substitution processing using all matching lookups.
|
addSubtable, assembleLookups, findLookupTables, freezeSubtables, getGlyphDefinitions, getLookups, getLookupTable, getLookupTables, getTableTypeFromName, hasFeature, matchLookups, matchLookupSpecs, resolveLookupReferences, toString
public static final int GSUB_LOOKUP_TYPE_SINGLE
public static final int GSUB_LOOKUP_TYPE_MULTIPLE
public static final int GSUB_LOOKUP_TYPE_ALTERNATE
public static final int GSUB_LOOKUP_TYPE_LIGATURE
public static final int GSUB_LOOKUP_TYPE_CONTEXTUAL
public static final int GSUB_LOOKUP_TYPE_CHAINED_CONTEXTUAL
public static final int GSUB_LOOKUP_TYPE_EXTENSION_SUBSTITUTION
public static final int GSUB_LOOKUP_TYPE_REVERSE_CHAINED_SINGLE
public GlyphSubstitutionTable(GlyphDefinitionTable gdef, Map lookups, List subtables, Map<String,ScriptProcessor> processors)
GlyphSubstitutionTable
object using the specified lookups
and subtables.gdef
- glyph definition table that applieslookups
- a map of lookup specifications to subtable identifier stringssubtables
- a list of identified subtablespublic GlyphSequence substitute(GlyphSequence gs, String script, String language)
gs
- an input glyph sequencescript
- a script identifierlanguage
- a language identifierpublic CharSequence preProcess(CharSequence charSequence, String script, MultiByteFont font, List associations)
public static int getLookupTypeFromName(String name)
name
- lookup type namepublic static String getLookupTypeName(int type)
type
- lookup typepublic static GlyphSubtable createSubtable(int type, String id, int sequence, int flags, int format, GlyphCoverageTable coverage, List entries)
type
- subtable typeid
- subtable identifiersequence
- subtable sequenceflags
- subtable flagsformat
- subtable formatcoverage
- subtable coverage tableentries
- subtable entriespublic static GlyphSubtable createSubtable(int type, String id, int sequence, int flags, int format, List coverage, List entries)
type
- subtable typeid
- subtable identifiersequence
- subtable sequenceflags
- subtable flagsformat
- subtable formatcoverage
- list of coverage table entriesentries
- subtable entriesCopyright © 2025 Apache Software Foundation. All rights reserved.