Lines Matching refs:success
48 const LEFontInstance *fontInstance, LEErrorCode& success) const
50 if (LE_FAILURE(success)) {
60 LEReferenceTo<LookupSubtable> lookupSubtable = lookupTable->getLookupSubtable(lookupTable, subtable, success);
62 delta = applySubtable(lookupSubtable, lookupType, glyphIterator, fontInstance, success);
64 if (delta > 0 || LE_FAILURE(success)) {
76 const LEFontInstance *fontInstance, LEErrorCode& success) const
78 if (LE_FAILURE(success)) {
92 for (le_uint16 order = 0; order < lookupOrderCount && LE_SUCCESS(success); order += 1) {
97 const LEReferenceTo<LookupTable> lookupTable = lookupListTable->getLookupTable(lookupListTable, lookup, success);
98 if (!lookupTable.isValid() ||LE_FAILURE(success) ) {
106 applyLookupTable(lookupTable, &glyphIterator, fontInstance, success); // TODO
107 if (LE_FAILURE(success)) {
120 const LEFontInstance *fontInstance, LEErrorCode& success) const
122 if (LE_FAILURE(success)) {
126 const LEReferenceTo<LookupTable> lookupTable = lookupListTable->getLookupTable(lookupListTable, lookupTableIndex, success);
128 success = LE_INTERNAL_ERROR;
133 le_uint32 delta = applyLookupTable(lookupTable, &tempIterator, fontInstance, success);
138 le_int32 LookupProcessor::selectLookups(const LEReferenceTo<FeatureTable> &featureTable, FeatureMask featureMask, le_int32 order, LEErrorCode &success)
143 LEReferenceToArrayOf<le_uint16> lookupListIndexArray(featureTable, success, featureTable->lookupListIndexArray, lookupCount);
145 for (le_uint16 lookup = 0; LE_SUCCESS(success) && lookup < lookupCount; lookup += 1) {
146 le_uint16 lookupListIndex = SWAPW(lookupListIndexArray.getObject(lookup,success));
161 LEErrorCode& success)
171 if (LE_FAILURE(success)) {
176 scriptListTable = LEReferenceTo<ScriptListTable>(baseAddress, success, scriptListOffset);
177 langSysTable = scriptListTable->findLanguage(scriptListTable, scriptTag, languageTag, success);
179 if (langSysTable.isValid() && LE_SUCCESS(success)) {
185 featureListTable = LEReferenceTo<FeatureListTable>(baseAddress, success, featureListOffset);
189 lookupListTable = LEReferenceTo<LookupListTable>(baseAddress,success, lookupListOffset);
190 if(LE_SUCCESS(success) && lookupListTable.isValid()) {
206 success = LE_MEMORY_ALLOCATION_ERROR;
228 if(featureListTable.isValid() && LE_SUCCESS(success)) {
229 LEReferenceToArrayOf<le_uint16> featureIndexArray(langSysTable, success, langSysTable->featureIndexArray, featureCount);
231 for (le_uint32 feature = 0; LE_SUCCESS(success)&&(feature < featureCount); feature += 1) {
232 le_uint16 featureIndex = SWAPW(featureIndexArray.getObject(feature, success));
234 featureTable = featureListTable->getFeatureTable(featureListTable, featureIndex, &featureTag, success);
235 if (!featureTable.isValid() || LE_FAILURE(success)) {
242 if (!featureTable.isValid() || LE_FAILURE(success)) {
243 success = LE_INTERNAL_ERROR;
248 requiredFeatureTable = featureListTable->getFeatureTable(featureListTable, requiredFeatureIndex, &requiredFeatureTag, success);
254 success = LE_MEMORY_ALLOCATION_ERROR;
264 count += selectLookups(requiredFeatureTable, fm.mask, order, success);
274 LEReferenceToArrayOf<le_uint16> featureIndexArray(langSysTable, success, langSysTable->featureIndexArray, featureCount);
275 le_uint16 featureIndex = SWAPW(featureIndexArray.getObject(feature,success));
283 featureTable = featureListTable->getFeatureTable(featureListTable, featureIndex, &featureTag, success);
286 count += selectLookups(featureTable, fm.mask, order + count, success);
296 LEReferenceToArrayOf<le_uint16> featureIndexArray(langSysTable, success, langSysTable->featureIndexArray, featureCount);
297 for (le_uint16 feature = 0; LE_SUCCESS(success)&& (feature < featureCount); feature += 1) {
298 le_uint16 featureIndex = SWAPW(featureIndexArray.getObject(feature,success));
310 featureTable = featureListTable->getFeatureTable(featureListTable, featureIndex, &featureTag, success);
313 order += selectLookups(featureTable, fm.mask, order, success);