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.
|
CharSequence |
performSubstitution(CharSequence cs,
String script,
String language,
List associations,
boolean retainControls)
Perform substitutions on characters to effect glyph substitution.
|
CharSequence |
reorderCombiningMarks(CharSequence cs,
int[][] gpa,
String script,
String language,
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()
CharSequence performSubstitution(CharSequence cs, String script, String language, 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 removeCharSequence reorderCombiningMarks(CharSequence cs, int[][] gpa, String script, String language, 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 © 2025 Apache Software Foundation. All rights reserved.