8065291: Improved font lookups

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

View File

@ -255,6 +255,7 @@ LookupProcessor::LookupProcessor(const LETableReference &baseAddress,
if (requiredFeatureIndex != 0xFFFF) {
requiredFeatureTable = featureListTable->getFeatureTable(featureListTable, requiredFeatureIndex, &requiredFeatureTag, success);
if (LE_FAILURE(success)) return;
featureReferences += SWAPW(requiredFeatureTable->lookupCount);
}
@ -292,7 +293,7 @@ LookupProcessor::LookupProcessor(const LETableReference &baseAddress,
}
featureTable = featureListTable->getFeatureTable(featureListTable, featureIndex, &featureTag, success);
if (LE_FAILURE(success)) continue;
if (featureTag == fm.tag) {
count += selectLookups(featureTable, fm.mask, order + count, success);
}
@ -319,7 +320,7 @@ LookupProcessor::LookupProcessor(const LETableReference &baseAddress,
#endif
featureTable = featureListTable->getFeatureTable(featureListTable, featureIndex, &featureTag, success);
if (LE_FAILURE(success)) continue;
if (featureTag == fm.tag) {
order += selectLookups(featureTable, fm.mask, order, success);
}