Lines Matching refs:success
141 LEErrorCode &success) in LayoutEngine() argument
145 if (LE_FAILURE(success)) { in LayoutEngine()
151 success = LE_MEMORY_ALLOCATION_ERROR; in LayoutEngine()
160 void LayoutEngine::getCharIndices(le_int32 charIndices[], le_int32 indexBase, LEErrorCode &success)… in getCharIndices()
162 fGlyphStorage->getCharIndices(charIndices, indexBase, success); in getCharIndices()
165 void LayoutEngine::getCharIndices(le_int32 charIndices[], LEErrorCode &success) const in getCharIndices()
167 fGlyphStorage->getCharIndices(charIndices, success); in getCharIndices()
171 void LayoutEngine::getGlyphs(le_uint32 glyphs[], le_uint32 extraBits, LEErrorCode &success) const in getGlyphs()
173 fGlyphStorage->getGlyphs(glyphs, extraBits, success); in getGlyphs()
176 void LayoutEngine::getGlyphs(LEGlyphID glyphs[], LEErrorCode &success) const in getGlyphs()
178 fGlyphStorage->getGlyphs(glyphs, success); in getGlyphs()
182 void LayoutEngine::getGlyphPositions(float positions[], LEErrorCode &success) const in getGlyphPositions()
184 fGlyphStorage->getGlyphPositions(positions, success); in getGlyphPositions()
187 void LayoutEngine::getGlyphPosition(le_int32 glyphIndex, float &x, float &y, LEErrorCode &success) … in getGlyphPosition()
189 fGlyphStorage->getGlyphPosition(glyphIndex, x, y, success); in getGlyphPosition()
193 LEUnicode *&outChars, LEGlyphStorage &glyphStorage, LEErrorCode &success) in characterProcessing() argument
195 if (LE_FAILURE(success)) { in characterProcessing()
200 success = LE_ILLEGAL_ARGUMENT_ERROR; in characterProcessing()
212 success = LE_MEMORY_ALLOCATION_ERROR; in characterProcessing()
220 fakeGlyphStorage.allocateGlyphArray(count, rightToLeft, success); in characterProcessing()
222 if (LE_FAILURE(success)) { in characterProcessing()
235 success = LE_MEMORY_ALLOCATION_ERROR; in characterProcessing()
243 fakeGlyphStorage.allocateAuxData(success); in characterProcessing()
245 if (LE_FAILURE(success)) { in characterProcessing()
257 fakeGlyphStorage.setAuxData(out, canonFeatures, success); in characterProcessing()
264 …tTag, langSysTag, NULL, substitutionFilter, canonFeatureMap, canonFeatureMapCount, FALSE, success); in characterProcessing()
266 if (LE_FAILURE(success)) { in characterProcessing()
285 success = LE_MEMORY_ALLOCATION_ERROR; in characterProcessing()
300 LEGlyphStorage &glyphStorage, LEErrorCode &success) in computeGlyphs() argument
302 if (LE_FAILURE(success)) { in computeGlyphs()
307 success = LE_ILLEGAL_ARGUMENT_ERROR; in computeGlyphs()
312 …unt = characterProcessing(chars, offset, count, max, rightToLeft, outChars, glyphStorage, success); in computeGlyphs()
315 … mapCharsToGlyphs(outChars, 0, outCharCount, rightToLeft, rightToLeft, glyphStorage, success); in computeGlyphs()
318 mapCharsToGlyphs(chars, offset, count, rightToLeft, rightToLeft, glyphStorage, success); in computeGlyphs()
326 … LayoutEngine::positionGlyphs(LEGlyphStorage &glyphStorage, float x, float y, LEErrorCode &success) in positionGlyphs() argument
328 if (LE_FAILURE(success)) { in positionGlyphs()
332 glyphStorage.allocatePositions(success); in positionGlyphs()
334 if (LE_FAILURE(success)) { in positionGlyphs()
343 glyphStorage.setPosition(i, x, y, success); in positionGlyphs()
350 glyphStorage.setPosition(glyphCount, x, y, success); in positionGlyphs()
354 LEGlyphStorage &glyphStorage, LEErrorCode &success) in adjustGlyphPositions() argument
356 if (LE_FAILURE(success)) { in adjustGlyphPositions()
361 success = LE_ILLEGAL_ARGUMENT_ERROR; in adjustGlyphPositions()
368 adjustMarkGlyphs(&chars[offset], count, reverse, glyphStorage, &filter, success); in adjustGlyphPositions()
381 …ne::adjustMarkGlyphs(LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success) in adjustMarkGlyphs() argument
386 if (LE_FAILURE(success)) { in adjustMarkGlyphs()
391 success = LE_ILLEGAL_ARGUMENT_ERROR; in adjustMarkGlyphs()
397 glyphStorage.getGlyphPosition(0, prev, ignore, success); in adjustMarkGlyphs()
402 glyphStorage.getGlyphPosition(p + 1, next, ignore, success); in adjustMarkGlyphs()
405 glyphStorage.adjustPosition(p, xAdjust, 0, success); in adjustMarkGlyphs()
414 glyphStorage.adjustPosition(glyphCount, xAdjust, 0, success); in adjustMarkGlyphs()
417 …nt, le_bool reverse, LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success) in adjustMarkGlyphs() argument
423 if (LE_FAILURE(success)) { in adjustMarkGlyphs()
428 success = LE_ILLEGAL_ARGUMENT_ERROR; in adjustMarkGlyphs()
439 glyphStorage.getGlyphPosition(0, prev, ignore, success); in adjustMarkGlyphs()
444 glyphStorage.getGlyphPosition(p + 1, next, ignore, success); in adjustMarkGlyphs()
447 glyphStorage.adjustPosition(p, xAdjust, 0, success); in adjustMarkGlyphs()
456 glyphStorage.adjustPosition(glyphCount, xAdjust, 0, success); in adjustMarkGlyphs()
465 LEGlyphStorage &glyphStorage, LEErrorCode &success) in mapCharsToGlyphs() argument
467 if (LE_FAILURE(success)) { in mapCharsToGlyphs()
471 glyphStorage.allocateGlyphArray(count, reverse, success); in mapCharsToGlyphs()
482 float x, float y, LEErrorCode &success) in layoutChars() argument
484 if (LE_FAILURE(success)) { in layoutChars()
489 success = LE_ILLEGAL_ARGUMENT_ERROR; in layoutChars()
499 glyphCount = computeGlyphs(chars, offset, count, max, rightToLeft, *fGlyphStorage, success); in layoutChars()
500 positionGlyphs(*fGlyphStorage, x, y, success); in layoutChars()
501 adjustGlyphPositions(chars, offset, count, rightToLeft, *fGlyphStorage, success); in layoutChars()
511 …nst LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, LEErrorCode &success) in layoutEngineFactory() argument
514 return LayoutEngine::layoutEngineFactory(fontInstance, scriptCode, languageCode, 3, success); in layoutEngineFactory()
517 …fontInstance, le_int32 scriptCode, le_int32 languageCode, le_int32 typoFlags, LEErrorCode &success) in layoutEngineFactory() argument
522 if (LE_FAILURE(success)) { in layoutEngineFactory()
536 …cOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, TRUE, gsubTable, success); in layoutEngineFactory()
550 …OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, FALSE, gsubTable, success); in layoutEngineFactory()
554 … ArabicOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
559 …youtEngine(fontInstance, scriptCode, languageCode, typoFlags & ~kTypoFlagLiga, gsubTable, success); in layoutEngineFactory()
563 … HangulOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
575 …new HanOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
581 … = new OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
588 …TibetanOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
592 …w KhmerOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
596 … = new OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
603 … result = new GXLayoutEngine(fontInstance, scriptCode, languageCode, morphTable, success); in layoutEngineFactory()
617 …result = new IndicOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
623 … new UnicodeArabicOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
630 … result = new ThaiLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
634 …esult = new HangulOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
638 … result = new LayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
644 if (result && LE_FAILURE(success)) { in layoutEngineFactory()
650 success = LE_MEMORY_ALLOCATION_ERROR; in layoutEngineFactory()