8065286: Fewer subtable substitutions

Reviewed-by: bae, srl, mschoene
This commit is contained in:
Phil Race 2014-12-18 10:43:02 -08:00
parent b8ae69575c
commit 81c5390912

View File

@ -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) {