mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-2743 handle multiple substitutions which substitute a single glyph.
X-SVN-Rev: 11219
This commit is contained in:
parent
bb2050611b
commit
2663f369f0
1 changed files with 9 additions and 2 deletions
|
@ -29,8 +29,15 @@ le_uint32 MultipleSubstitutionSubtable::process(GlyphIterator *glyphIterator, co
|
|||
if (glyphCount == 0) {
|
||||
glyphIterator->setCurrGlyphID(0xFFFF);
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
} else if (glyphCount == 1) {
|
||||
TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[0]);
|
||||
|
||||
if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, substitute))) {
|
||||
glyphIterator->setCurrGlyphID(substitute);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else {
|
||||
// Can't do this 'till there's a way to
|
||||
// grow the glyph array...
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue