8065286: Fewer subtable substitutions
Reviewed-by: bae, srl, mschoene
This commit is contained in:
parent
b8ae69575c
commit
81c5390912
@ -71,6 +71,9 @@ le_uint32 MultipleSubstitutionSubtable::process(const LETableReference &base, Gl
|
|||||||
if (coverageIndex >= 0 && coverageIndex < seqCount) {
|
if (coverageIndex >= 0 && coverageIndex < seqCount) {
|
||||||
Offset sequenceTableOffset = SWAPW(sequenceTableOffsetArray[coverageIndex]);
|
Offset sequenceTableOffset = SWAPW(sequenceTableOffsetArray[coverageIndex]);
|
||||||
LEReferenceTo<SequenceTable> sequenceTable(base, success, sequenceTableOffset);
|
LEReferenceTo<SequenceTable> sequenceTable(base, success, sequenceTableOffset);
|
||||||
|
if (LE_FAILURE(success)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
le_uint16 glyphCount = SWAPW(sequenceTable->glyphCount);
|
le_uint16 glyphCount = SWAPW(sequenceTable->glyphCount);
|
||||||
|
|
||||||
if (glyphCount == 0) {
|
if (glyphCount == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user