public class ArabicScriptProcessor extends DefaultScriptProcessor
The ArabicScriptProcessor
class implements a script processor for
performing glyph substitution and positioning operations on content associated with the Arabic script.
This work was originally authored by Glenn Adams (gadams@apache.org).
Modifier and Type | Method and Description |
---|---|
ScriptContextTester |
getPositioningContextTester()
Obtain script specific positioning context tester.
|
String[] |
getPositioningFeatures()
Obtain script specific required positioning features.
|
ScriptContextTester |
getSubstitutionContextTester()
Obtain script specific substitution context tester.
|
String[] |
getSubstitutionFeatures()
Obtain script specific required substitution features.
|
GlyphSequence |
reorderCombiningMarks(GlyphDefinitionTable gdef,
GlyphSequence gs,
int[] widths,
int[][] gpa,
String script,
String language)
Reorder combining marks in glyph sequence so that they precede (within the sequence) the base
character to which they are applied.
|
isReorderedMark
assembleLookups, getInstance, getOptionalPositioningFeatures, getOptionalSubstitutionFeatures, getScript, position, position, preProcess, substitute, substitute
public String[] getSubstitutionFeatures()
getSubstitutionFeatures
in class DefaultScriptProcessor
public ScriptContextTester getSubstitutionContextTester()
getSubstitutionContextTester
in class DefaultScriptProcessor
public String[] getPositioningFeatures()
getPositioningFeatures
in class DefaultScriptProcessor
public ScriptContextTester getPositioningContextTester()
getPositioningContextTester
in class DefaultScriptProcessor
public GlyphSequence reorderCombiningMarks(GlyphDefinitionTable gdef, GlyphSequence gs, int[] widths, int[][] gpa, String script, String language)
reorderCombiningMarks
in class DefaultScriptProcessor
gdef
- the glyph definition table that appliesgs
- an input glyph sequencewidths
- associated unscaled advance widths (also reordered)gpa
- associated glyph position adjustments (also reordered)script
- a script identifierlanguage
- a language identifierCopyright © 2025 Apache Software Foundation. All rights reserved.