Class GlyphProcessingState
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphProcessingState
- Direct Known Subclasses:
GlyphPositioningState,GlyphSubstitutionState
The GlyphProcessingState implements a common, base state object used during glyph substitution
and positioning processing.
This work was originally authored by Glenn Adams (gadams@apache.org).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intclass match setprotected intconsumed, updated after each successful subtable applicationprotected Stringgoverning featureprotected GlyphContextTesterglyph context tester or nullprotected GlyphDefinitionTablegoverning glyph definition tableprotected GlyphTesterignore base glyph testerprotected GlyphTesterdefault ignore glyph testerprotected GlyphTesterignore ligature glyph testerprotected GlyphTesterignore mark glyph testerprotected GlyphSequencecurrent input glyph sequenceprotected intcurrent index in input sequenceprotected intlast (maximum) index of input sequence (exclusive)protected Stringgoverning languageprotected intlookup flagsprotected Stringgoverning scriptprotected ScriptContextTesterscript specific context tester or null -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstruct default (reset) glyph processing state.protectedConstruct glyph processing state using an existing state object using shallow copy except as follows: input glyph sequence is copied deep except for its characters array.protectedGlyphProcessingState(GlyphSequence gs, String script, String language, String feature, ScriptContextTester sct) Construct glyph processing state. -
Method Summary
Modifier and TypeMethodDescriptionvoidApply default application semantices; namely, consume one glyph.intconsume(int count) Record the consumption ofcountglyphs such that this consumption never exceeds the number of glyphs in the input glyph sequence.booleanDetermine if any consumption has occurred.interase(int offset, int[] glyphs) Erase glyphs in input glyph sequence starting at specified offset from current position, where each glyph in the specifiedglyphsarray is matched, one at a time, and when a (forward searching) match is found in the input glyph sequence, the matching glyph is replaced with the glyph index 65535.Obtain character association of glyph at current position.getAssociation(int offset) Obtain character association of glyph at specified offset from current position.getAssociations(int offset, int count) Obtaincountcharacter associations of glyphs starting at specified offset from current position.getAssociations(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, CharAssociation[] associations, int[] counts) Obtaincountcharacter associations of glyphs starting at specified offset from current position.intgetClassMatchSet(int gi) Obtain governing class match set.getCombinedAndTester(GlyphTester[] gta, int ngt) Obtain an combined AND glyph tester.getCombinedIgnoreTester(int flags) Obtain an ignored glyph tester that corresponds to the specified multiple (combined) lookup flags.getCombinedOrTester(GlyphTester[] gta, int ngt) Obtain an combined OR glyph tester.getGDEF()Obtain governing glyph definition table.intgetGlyph()Obtain glyph at current position.intgetGlyph(int offset) Obtain glyph at specified offset from current position.int[]Obtain all glyphs starting from current position to end of input glyph sequence.int[]getGlyphs(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, int[] glyphs, int[] counts) Obtaincountglyphs starting at specified offset from current position.int[]getGlyphs(int offset, int count, int[] glyphs, int[] counts) Obtaincountglyphs starting at specified offset from current position.int[]getGlyphsAvailable(int offset) Determine number of glyphs available starting at specified offset from current position.int[]getGlyphsAvailable(int offset, boolean reverseOrder) Determine number of glyphs available starting at specified offset from current position.int[]getGlyphsAvailable(int offset, boolean reverseOrder, GlyphTester ignoreTester) Determine number of glyphs available starting at specified offset from current position.getIgnoredAssociations(int offset, int count) Obtaincountcharacter associations of ignored glyphs starting at specified offset from current position.getIgnoredAssociations(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, CharAssociation[] associations, int[] counts) Obtaincountcharacter associations of ignored glyphs starting at specified offset from current position.Obtain governing default ignores tester.int[]getIgnoredGlyphs(int offset, int count) Obtaincountignored glyphs starting at specified offset from current position.int[]getIgnoredGlyphs(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, int[] glyphs, int[] counts) Obtaincountignored glyphs starting at specified offset from current position.getIgnoreTester(int flags) Obtain an ignored glyph tester that corresponds to the specified lookup flags.getInput()Obtain reference to input glyph sequence, which must not be modified.intObtain last valid position index in input glyph sequence.intObtain governing lookup flags.intObtain current position index in input glyph sequence.intgetUnprocessedGlyph(int offset) booleanhasNext()Determine if at least one glyph remains in input sequence.booleanhasNext(int count) Determine if at leastcountglyphs remain in input sequence.booleanhasPrev()Determine if at least one backtrack (previous) glyph is present in input sequence.booleanhasPrev(int count) Determine if at leastcountbacktrack (previous) glyphs are present in input sequence.booleanisBase(int gi) Determine if specified glyph is a base glyph according to the governing glyph definition table.booleanisIgnoredBase(int gi, int flags) Determine if specified glyph is an ignored base glyph according to the governing glyph definition table.booleanDetermine if glyph at current position is ignored.booleanisIgnoredGlyph(int offset) Determine if glyph at specified offset from current position is ignored.booleanisIgnoredGlyph(int offset, GlyphTester ignoreTester) Determine if glyph at specified offset from current position is ignored.booleanisIgnoredLigature(int gi, int flags) Determine if specified glyph is an ignored ligature glyph according to the governing glyph definition table.booleanisIgnoredMark(int gi, int flags) Determine if specified glyph is an ignored ligature glyph according to the governing glyph definition table.booleanisLigature(int gi) Determine if specified glyph is an ligature glyph according to the governing glyph definition table.booleanisMark(int gi) Determine if specified glyph is a mark glyph according to the governing glyph definition table.booleanDetermine if is possible that the current input sequence satisfies a script specific context testing predicate.intnext()Update the current position index based upon previously consumed glyphs, i.e., add the consuemd count to the current position index.intprev()Update the current position index based upon previously consumed glyphs, i.e., subtract the consuemd count from the current position index.booleanreplaceInput(int offset, int count, GlyphSequence gs) Replace subsequence of input glyph sequence starting at specified offset from current position and of lengthcountglyphs with all glyphs in the replacement sequencegs.booleanreplaceInput(int offset, int count, GlyphSequence gs, int gsOffset, int gsCount) Replace subsequence of input glyph sequence starting at specified offset from current position and of lengthcountglyphs with a subsequence of the sequencegsstarting from the specified offsetgsOffsetof lengthgsCountglyphs.protected GlyphProcessingStatereset(GlyphSequence gs, String script, String language, String feature, ScriptContextTester sct) Reset glyph processing state.voidsetGDEF(GlyphDefinitionTable gdef) Set governing glyph definition table.voidsetGlyph(int offset, int glyph) Set (replace) glyph at specified offset from current position.voidsetIgnoreDefault(GlyphTester ignoreDefault) Set default ignore tester.voidsetLookupFlags(int flags) Set governing lookup flagsvoidsetPosition(int index) Set (seek to) position index in input glyph sequence.voidUpdate glyph subtable specific state.
-
Field Details
-
gdef
governing glyph definition table -
script
governing script -
language
governing language -
feature
governing feature -
igs
current input glyph sequence -
index
protected int indexcurrent index in input sequence -
indexLast
protected int indexLastlast (maximum) index of input sequence (exclusive) -
consumed
protected int consumedconsumed, updated after each successful subtable application -
lookupFlags
protected int lookupFlagslookup flags -
classMatchSet
protected int classMatchSetclass match set -
sct
script specific context tester or null -
gct
glyph context tester or null -
ignoreBase
ignore base glyph tester -
ignoreLigature
ignore ligature glyph tester -
ignoreMark
ignore mark glyph tester -
ignoreDefault
default ignore glyph tester
-
-
Constructor Details
-
GlyphProcessingState
public GlyphProcessingState()Construct default (reset) glyph processing state. -
GlyphProcessingState
protected GlyphProcessingState(GlyphSequence gs, String script, String language, String feature, ScriptContextTester sct) Construct glyph processing state.- Parameters:
gs- input glyph sequencescript- script identifierlanguage- language identifierfeature- feature identifiersct- script context tester (or null)
-
GlyphProcessingState
Construct glyph processing state using an existing state object using shallow copy except as follows: input glyph sequence is copied deep except for its characters array.- Parameters:
s- existing processing state to copy from
-
-
Method Details
-
reset
protected GlyphProcessingState reset(GlyphSequence gs, String script, String language, String feature, ScriptContextTester sct) Reset glyph processing state.- Parameters:
gs- input glyph sequencescript- script identifierlanguage- language identifierfeature- feature identifiersct- script context tester (or null)- Returns:
- this instance
-
setGDEF
Set governing glyph definition table.- Parameters:
gdef- glyph definition table (or null, to unset)
-
getGDEF
Obtain governing glyph definition table.- Returns:
- glyph definition table (or null, to not set)
-
setLookupFlags
public void setLookupFlags(int flags) Set governing lookup flags- Parameters:
flags- lookup flags (or zero, to unset)
-
getLookupFlags
public int getLookupFlags()Obtain governing lookup flags.- Returns:
- lookup flags (zero may indicate unset or no flags)
-
getClassMatchSet
public int getClassMatchSet(int gi) Obtain governing class match set.- Parameters:
gi- glyph index that may be used to determine which match set applies- Returns:
- class match set (zero may indicate unset or no set)
-
setIgnoreDefault
Set default ignore tester.- Parameters:
ignoreDefault- glyph tester (or null, to unset)
-
getIgnoreDefault
Obtain governing default ignores tester.- Returns:
- default ignores tester
-
updateSubtableState
Update glyph subtable specific state. Each time a different glyph subtable is to be applied, it is used to update this state prior to application, after which this state is to be reset.- Parameters:
st- glyph subtable to use for update
-
getPosition
public int getPosition()Obtain current position index in input glyph sequence.- Returns:
- current index
-
setPosition
Set (seek to) position index in input glyph sequence.- Parameters:
index- to seek to- Throws:
IndexOutOfBoundsException- if index is less than zero or exceeds last valid position
-
getLastPosition
public int getLastPosition()Obtain last valid position index in input glyph sequence.- Returns:
- current last index
-
hasNext
public boolean hasNext()Determine if at least one glyph remains in input sequence.- Returns:
- true if one or more glyph remains
-
hasNext
public boolean hasNext(int count) Determine if at leastcountglyphs remain in input sequence.- Parameters:
count- of glyphs to test- Returns:
- true if at least
countglyphs are available
-
next
public int next()Update the current position index based upon previously consumed glyphs, i.e., add the consuemd count to the current position index. If no glyphs were previously consumed, then forces exactly one glyph to be consumed.- Returns:
- the new (updated) position index
-
hasPrev
public boolean hasPrev()Determine if at least one backtrack (previous) glyph is present in input sequence.- Returns:
- true if one or more glyph remains
-
hasPrev
public boolean hasPrev(int count) Determine if at leastcountbacktrack (previous) glyphs are present in input sequence.- Parameters:
count- of glyphs to test- Returns:
- true if at least
countglyphs are available
-
prev
public int prev()Update the current position index based upon previously consumed glyphs, i.e., subtract the consuemd count from the current position index. If no glyphs were previously consumed, then forces exactly one glyph to be consumed. This method is used to traverse an input glyph sequence in reverse order.- Returns:
- the new (updated) position index
-
consume
Record the consumption ofcountglyphs such that this consumption never exceeds the number of glyphs in the input glyph sequence.- Parameters:
count- of glyphs to consume- Returns:
- newly adjusted consumption count
- Throws:
IndexOutOfBoundsException- if count would cause consumption to exceed count of glyphs in input glyph sequence
-
didConsume
public boolean didConsume()Determine if any consumption has occurred.- Returns:
- true if consumption count is greater than zero
-
getInput
Obtain reference to input glyph sequence, which must not be modified.- Returns:
- input glyph sequence
-
getGlyph
Obtain glyph at specified offset from current position.- Parameters:
offset- from current position- Returns:
- glyph at specified offset from current position
- Throws:
IndexOutOfBoundsException- if no glyph available at offset
-
getUnprocessedGlyph
- Throws:
IndexOutOfBoundsException
-
getGlyph
Obtain glyph at current position.- Returns:
- glyph at current position
- Throws:
IndexOutOfBoundsException- if no glyph available
-
setGlyph
Set (replace) glyph at specified offset from current position.- Parameters:
offset- from current positionglyph- to set at specified offset from current position- Throws:
IndexOutOfBoundsException- if specified offset is not valid position
-
getAssociation
Obtain character association of glyph at specified offset from current position.- Parameters:
offset- from current position- Returns:
- character association of glyph at current position
- Throws:
IndexOutOfBoundsException- if offset results in an invalid index into input glyph sequence
-
getAssociation
Obtain character association of glyph at current position.- Returns:
- character association of glyph at current position
- Throws:
IndexOutOfBoundsException- if no glyph available
-
getGlyphs
public int[] getGlyphs(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, int[] glyphs, int[] counts) throws IndexOutOfBoundsException Obtaincountglyphs starting at specified offset from current position. IfreverseOrderis true, then glyphs are returned in reverse order starting at specified offset and going in reverse towards beginning of input glyph sequence.- Parameters:
offset- from current positioncount- number of glyphs to obtainreverseOrder- true if to obtain in reverse orderignoreTester- glyph tester to use to determine which glyphs are ignored (or null, in which case none are ignored)glyphs- array to use to fetch glyphscounts- int[2] array to receive fetched glyph counts, where counts[0] will receive the number of glyphs obtained, and counts[1] will receive the number of glyphs ignored- Returns:
- array of glyphs
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getGlyphs
public int[] getGlyphs(int offset, int count, int[] glyphs, int[] counts) throws IndexOutOfBoundsException Obtaincountglyphs starting at specified offset from current position. If offset is negative, then glyphs are returned in reverse order starting at specified offset and going in reverse towards beginning of input glyph sequence.- Parameters:
offset- from current positioncount- number of glyphs to obtainglyphs- array to use to fetch glyphscounts- int[2] array to receive fetched glyph counts, where counts[0] will receive the number of glyphs obtained, and counts[1] will receive the number of glyphs ignored- Returns:
- array of glyphs
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getGlyphs
Obtain all glyphs starting from current position to end of input glyph sequence.- Returns:
- array of available glyphs
- Throws:
IndexOutOfBoundsException- if no glyph available
-
getIgnoredGlyphs
public int[] getIgnoredGlyphs(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, int[] glyphs, int[] counts) throws IndexOutOfBoundsException Obtaincountignored glyphs starting at specified offset from current position. IfreverseOrderis true, then glyphs are returned in reverse order starting at specified offset and going in reverse towards beginning of input glyph sequence.- Parameters:
offset- from current positioncount- number of glyphs to obtainreverseOrder- true if to obtain in reverse orderignoreTester- glyph tester to use to determine which glyphs are ignored (or null, in which case none are ignored)glyphs- array to use to fetch glyphscounts- int[2] array to receive fetched glyph counts, where counts[0] will receive the number of glyphs obtained, and counts[1] will receive the number of glyphs ignored- Returns:
- array of glyphs
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getIgnoredGlyphs
Obtaincountignored glyphs starting at specified offset from current position. Ifoffsetis negative, then fetch in reverse order.- Parameters:
offset- from current positioncount- number of glyphs to obtain- Returns:
- array of glyphs
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
isIgnoredGlyph
public boolean isIgnoredGlyph(int offset, GlyphTester ignoreTester) throws IndexOutOfBoundsException Determine if glyph at specified offset from current position is ignored. Ifoffsetis negative, then test in reverse order.- Parameters:
offset- from current positionignoreTester- glyph tester to use to determine which glyphs are ignored (or null, in which case none are ignored)- Returns:
- true if glyph is ignored
- Throws:
IndexOutOfBoundsException- if offset results in an invalid index into input glyph sequence
-
isIgnoredGlyph
Determine if glyph at specified offset from current position is ignored. Ifoffsetis negative, then test in reverse order.- Parameters:
offset- from current position- Returns:
- true if glyph is ignored
- Throws:
IndexOutOfBoundsException- if offset results in an invalid index into input glyph sequence
-
isIgnoredGlyph
Determine if glyph at current position is ignored.- Returns:
- true if glyph is ignored
- Throws:
IndexOutOfBoundsException- if offset results in an invalid index into input glyph sequence
-
getGlyphsAvailable
public int[] getGlyphsAvailable(int offset, boolean reverseOrder, GlyphTester ignoreTester) throws IndexOutOfBoundsException Determine number of glyphs available starting at specified offset from current position. IfreverseOrderis true, then search backwards in input glyph sequence.- Parameters:
offset- from current positionreverseOrder- true if to obtain in reverse orderignoreTester- glyph tester to use to determine which glyphs to count (or null, in which case none are ignored)- Returns:
- an int[2] array where counts[0] is the number of glyphs available, and counts[1] is the number of glyphs ignored
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getGlyphsAvailable
Determine number of glyphs available starting at specified offset from current position. IfreverseOrderis true, then search backwards in input glyph sequence. Uses the default ignores tester.- Parameters:
offset- from current positionreverseOrder- true if to obtain in reverse order- Returns:
- an int[2] array where counts[0] is the number of glyphs available, and counts[1] is the number of glyphs ignored
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getGlyphsAvailable
Determine number of glyphs available starting at specified offset from current position. If offset is negative, then search backwards in input glyph sequence. Uses the default ignores tester.- Parameters:
offset- from current position- Returns:
- an int[2] array where counts[0] is the number of glyphs available, and counts[1] is the number of glyphs ignored
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getAssociations
public CharAssociation[] getAssociations(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, CharAssociation[] associations, int[] counts) throws IndexOutOfBoundsException Obtaincountcharacter associations of glyphs starting at specified offset from current position. IfreverseOrderis true, then associations are returned in reverse order starting at specified offset and going in reverse towards beginning of input glyph sequence.- Parameters:
offset- from current positioncount- number of associations to obtainreverseOrder- true if to obtain in reverse orderignoreTester- glyph tester to use to determine which glyphs are ignored (or null, in which case none are ignored)associations- array to use to fetch associationscounts- int[2] array to receive fetched association counts, where counts[0] will receive the number of associations obtained, and counts[1] will receive the number of glyphs whose associations were ignored- Returns:
- array of associations
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getAssociations
Obtaincountcharacter associations of glyphs starting at specified offset from current position. If offset is negative, then search backwards in input glyph sequence. Uses the default ignores tester.- Parameters:
offset- from current positioncount- number of associations to obtain- Returns:
- array of associations
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getIgnoredAssociations
public CharAssociation[] getIgnoredAssociations(int offset, int count, boolean reverseOrder, GlyphTester ignoreTester, CharAssociation[] associations, int[] counts) throws IndexOutOfBoundsException Obtaincountcharacter associations of ignored glyphs starting at specified offset from current position. IfreverseOrderis true, then glyphs are returned in reverse order starting at specified offset and going in reverse towards beginning of input glyph sequence.- Parameters:
offset- from current positioncount- number of character associations to obtainreverseOrder- true if to obtain in reverse orderignoreTester- glyph tester to use to determine which glyphs are ignored (or null, in which case none are ignored)associations- array to use to fetch associationscounts- int[2] array to receive fetched association counts, where counts[0] will receive the number of associations obtained, and counts[1] will receive the number of glyphs whose associations were ignored- Returns:
- array of associations
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
getIgnoredAssociations
public CharAssociation[] getIgnoredAssociations(int offset, int count) throws IndexOutOfBoundsException Obtaincountcharacter associations of ignored glyphs starting at specified offset from current position. If offset is negative, then search backwards in input glyph sequence. Uses the default ignores tester.- Parameters:
offset- from current positioncount- number of character associations to obtain- Returns:
- array of associations
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
replaceInput
public boolean replaceInput(int offset, int count, GlyphSequence gs, int gsOffset, int gsCount) throws IndexOutOfBoundsException Replace subsequence of input glyph sequence starting at specified offset from current position and of lengthcountglyphs with a subsequence of the sequencegsstarting from the specified offsetgsOffsetof lengthgsCountglyphs.- Parameters:
offset- from current positioncount- number of glyphs to replace, which, if negative means all glyphs from offset to end of input sequencegs- glyph sequence from which to obtain replacement glyphsgsOffset- offset of first glyph in replacement sequencegsCount- count of glyphs in replacement sequence starting atgsOffset- Returns:
- true if replacement occurred, or false if replacement would result in no change to input glyph sequence
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
replaceInput
public boolean replaceInput(int offset, int count, GlyphSequence gs) throws IndexOutOfBoundsException Replace subsequence of input glyph sequence starting at specified offset from current position and of lengthcountglyphs with all glyphs in the replacement sequencegs.- Parameters:
offset- from current positioncount- number of glyphs to replace, which, if negative means all glyphs from offset to end of input sequencegs- glyph sequence from which to obtain replacement glyphs- Returns:
- true if replacement occurred, or false if replacement would result in no change to input glyph sequence
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
erase
Erase glyphs in input glyph sequence starting at specified offset from current position, where each glyph in the specifiedglyphsarray is matched, one at a time, and when a (forward searching) match is found in the input glyph sequence, the matching glyph is replaced with the glyph index 65535.- Parameters:
offset- from current positionglyphs- array of glyphs to erase- Returns:
- the number of glyphs erased, which may be less than the number of specified glyphs
- Throws:
IndexOutOfBoundsException- if offset or count results in an invalid index into input glyph sequence
-
maybeApplicable
public boolean maybeApplicable()Determine if is possible that the current input sequence satisfies a script specific context testing predicate. If no predicate applies, then application is always possible.- Returns:
- true if no script specific context tester applies or if a specified tester returns true for the current input sequence context
-
applyDefault
public void applyDefault()Apply default application semantices; namely, consume one glyph. -
isBase
public boolean isBase(int gi) Determine if specified glyph is a base glyph according to the governing glyph definition table.- Parameters:
gi- glyph index to test- Returns:
- true if glyph definition table records glyph as a base glyph; otherwise, false
-
isIgnoredBase
public boolean isIgnoredBase(int gi, int flags) Determine if specified glyph is an ignored base glyph according to the governing glyph definition table.- Parameters:
gi- glyph index to testflags- that apply to lookup in scope- Returns:
- true if glyph definition table records glyph as a base glyph; otherwise, false
-
isLigature
public boolean isLigature(int gi) Determine if specified glyph is an ligature glyph according to the governing glyph definition table.- Parameters:
gi- glyph index to test- Returns:
- true if glyph definition table records glyph as a ligature glyph; otherwise, false
-
isIgnoredLigature
public boolean isIgnoredLigature(int gi, int flags) Determine if specified glyph is an ignored ligature glyph according to the governing glyph definition table.- Parameters:
gi- glyph index to testflags- that apply to lookup in scope- Returns:
- true if glyph definition table records glyph as a ligature glyph; otherwise, false
-
isMark
public boolean isMark(int gi) Determine if specified glyph is a mark glyph according to the governing glyph definition table.- Parameters:
gi- glyph index to test- Returns:
- true if glyph definition table records glyph as a mark glyph; otherwise, false
-
isIgnoredMark
public boolean isIgnoredMark(int gi, int flags) Determine if specified glyph is an ignored ligature glyph according to the governing glyph definition table.- Parameters:
gi- glyph index to testflags- that apply to lookup in scope- Returns:
- true if glyph definition table records glyph as a ligature glyph; otherwise, false
-
getIgnoreTester
Obtain an ignored glyph tester that corresponds to the specified lookup flags.- Parameters:
flags- lookup flags- Returns:
- a glyph tester
-
getCombinedIgnoreTester
Obtain an ignored glyph tester that corresponds to the specified multiple (combined) lookup flags.- Parameters:
flags- lookup flags- Returns:
- a glyph tester
-
getCombinedOrTester
Obtain an combined OR glyph tester.- Parameters:
gta- an array of glyph testersngt- number of glyph testers present in specified array- Returns:
- a combined OR glyph tester
-
getCombinedAndTester
Obtain an combined AND glyph tester.- Parameters:
gta- an array of glyph testersngt- number of glyph testers present in specified array- Returns:
- a combined AND glyph tester
-