public interface Substitutable
Optional interface which indicates that glyph substitution is supported and, if supported, can perform substitution.
This work was originally authored by Glenn Adams (gadams@apache.org).
| Modifier and Type | Method and Description |
|---|---|
boolean |
performsSubstitution()
Determines if font performs glyph substitution.
|
java.lang.CharSequence |
performSubstitution(java.lang.CharSequence cs,
java.lang.String script,
java.lang.String language,
java.util.List associations,
boolean retainControls)
Perform substitutions on characters to effect glyph substitution.
|
java.lang.CharSequence |
reorderCombiningMarks(java.lang.CharSequence cs,
int[][] gpa,
java.lang.String script,
java.lang.String language,
java.util.List associations)
Reorder combining marks in character sequence so that they precede (within the sequence) the base
character to which they are applied.
|
boolean performsSubstitution()
java.lang.CharSequence performSubstitution(java.lang.CharSequence cs,
java.lang.String script,
java.lang.String language,
java.util.List associations,
boolean retainControls)
cs - character sequence to map to output font encoding character sequencescript - a script identifierlanguage - a language identifierassociations - optional list to receive list of character associationsretainControls - if true, then retain control characters and their glyph mappings, otherwise removejava.lang.CharSequence reorderCombiningMarks(java.lang.CharSequence cs,
int[][] gpa,
java.lang.String script,
java.lang.String language,
java.util.List associations)
cs - character sequence within which combining marks to be reorderedgpa - associated glyph position adjustments (also reordered)script - a script identifierlanguage - a language identifierassociations - optional list of associations to be reorderedCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.