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)
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)
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)
cs
- character sequence to map to output font encoding character sequencescript
- a script identifierlanguage
- a language identifierjava.lang.CharSequence reorderCombiningMarks(java.lang.CharSequence cs, int[][] gpa, java.lang.String script, java.lang.String language)
cs
- character sequence within which combining marks to be reorderedgpa
- associated glyph position adjustments (also reordered)script
- a script identifierlanguage
- a language identifierCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.