• Home
  • Raw
  • Download

Lines Matching refs:success

104 … CanonMarkFilter(const LEReferenceTo<GlyphDefinitionTableHeader> &gdefTable, LEErrorCode &success);
110 …::CanonMarkFilter(const LEReferenceTo<GlyphDefinitionTableHeader> &gdefTable, LEErrorCode &success) in CanonMarkFilter() argument
111 : classDefTable(gdefTable->getMarkAttachClassDefinitionTable(gdefTable, success)) in CanonMarkFilter()
122 LEErrorCode success = LE_NO_ERROR; in accept() local
123 le_int32 glyphClass = classDefTable->getGlyphClass(classDefTable, glyph, success); in accept()
124 if(LE_FAILURE(success)) return false; in accept()
147 LEErrorCode &success) in LayoutEngine() argument
151 if (LE_FAILURE(success)) { in LayoutEngine()
157 success = LE_MEMORY_ALLOCATION_ERROR; in LayoutEngine()
166 void LayoutEngine::getCharIndices(le_int32 charIndices[], le_int32 indexBase, LEErrorCode &success)… in getCharIndices()
168 fGlyphStorage->getCharIndices(charIndices, indexBase, success); in getCharIndices()
171 void LayoutEngine::getCharIndices(le_int32 charIndices[], LEErrorCode &success) const in getCharIndices()
173 fGlyphStorage->getCharIndices(charIndices, success); in getCharIndices()
177 void LayoutEngine::getGlyphs(le_uint32 glyphs[], le_uint32 extraBits, LEErrorCode &success) const in getGlyphs()
179 fGlyphStorage->getGlyphs(glyphs, extraBits, success); in getGlyphs()
182 void LayoutEngine::getGlyphs(LEGlyphID glyphs[], LEErrorCode &success) const in getGlyphs()
184 fGlyphStorage->getGlyphs(glyphs, success); in getGlyphs()
188 void LayoutEngine::getGlyphPositions(float positions[], LEErrorCode &success) const in getGlyphPositions()
190 fGlyphStorage->getGlyphPositions(positions, success); in getGlyphPositions()
193 void LayoutEngine::getGlyphPosition(le_int32 glyphIndex, float &x, float &y, LEErrorCode &success) … in getGlyphPosition()
195 fGlyphStorage->getGlyphPosition(glyphIndex, x, y, success); in getGlyphPosition()
199 LEUnicode *&outChars, LEGlyphStorage &glyphStorage, LEErrorCode &success) in characterProcessing() argument
201 if (LE_FAILURE(success)) { in characterProcessing()
206 success = LE_ILLEGAL_ARGUMENT_ERROR; in characterProcessing()
215 if (canonGSUBTable->coversScript(canonGSUBTable,scriptTag, success) || LE_SUCCESS(success)) { in characterProcessing()
218 success = LE_MEMORY_ALLOCATION_ERROR; in characterProcessing()
226 fakeGlyphStorage.allocateGlyphArray(count, rightToLeft, success); in characterProcessing()
228 if (LE_FAILURE(success)) { in characterProcessing()
241 success = LE_MEMORY_ALLOCATION_ERROR; in characterProcessing()
249 fakeGlyphStorage.allocateAuxData(success); in characterProcessing()
251 if (LE_FAILURE(success)) { in characterProcessing()
263 fakeGlyphStorage.setAuxData(out, canonFeatures, success); in characterProcessing()
270 …itionTableHeader*)NULL, substitutionFilter, canonFeatureMap, canonFeatureMapCount, FALSE, success); in characterProcessing()
272 if (LE_FAILURE(success)) { in characterProcessing()
291 success = LE_MEMORY_ALLOCATION_ERROR; in characterProcessing()
306 LEGlyphStorage &glyphStorage, LEErrorCode &success) in computeGlyphs() argument
308 if (LE_FAILURE(success)) { in computeGlyphs()
313 success = LE_ILLEGAL_ARGUMENT_ERROR; in computeGlyphs()
318 …unt = characterProcessing(chars, offset, count, max, rightToLeft, outChars, glyphStorage, success); in computeGlyphs()
321 … mapCharsToGlyphs(outChars, 0, outCharCount, rightToLeft, rightToLeft, glyphStorage, success); in computeGlyphs()
324 mapCharsToGlyphs(chars, offset, count, rightToLeft, rightToLeft, glyphStorage, success); in computeGlyphs()
332 … LayoutEngine::positionGlyphs(LEGlyphStorage &glyphStorage, float x, float y, LEErrorCode &success) in positionGlyphs() argument
334 if (LE_FAILURE(success)) { in positionGlyphs()
338 glyphStorage.allocatePositions(success); in positionGlyphs()
340 if (LE_FAILURE(success)) { in positionGlyphs()
349 glyphStorage.setPosition(i, x, y, success); in positionGlyphs()
356 glyphStorage.setPosition(glyphCount, x, y, success); in positionGlyphs()
360 LEGlyphStorage &glyphStorage, LEErrorCode &success) in adjustGlyphPositions() argument
362 if (LE_FAILURE(success)) { in adjustGlyphPositions()
367 success = LE_ILLEGAL_ARGUMENT_ERROR; in adjustGlyphPositions()
373 CanonMarkFilter filter(gdefTable, success); in adjustGlyphPositions()
375 adjustMarkGlyphs(&chars[offset], count, reverse, glyphStorage, &filter, success); in adjustGlyphPositions()
378 LETableReference kernTable(fFontInstance, LE_KERN_TABLE_TAG, success); in adjustGlyphPositions()
379 KernTable kt(kernTable, success); in adjustGlyphPositions()
380 kt.process(glyphStorage, success); in adjustGlyphPositions()
387 …ne::adjustMarkGlyphs(LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success) in adjustMarkGlyphs() argument
392 if (LE_FAILURE(success)) { in adjustMarkGlyphs()
397 success = LE_ILLEGAL_ARGUMENT_ERROR; in adjustMarkGlyphs()
403 glyphStorage.getGlyphPosition(0, prev, ignore, success); in adjustMarkGlyphs()
408 glyphStorage.getGlyphPosition(p + 1, next, ignore, success); in adjustMarkGlyphs()
411 glyphStorage.adjustPosition(p, xAdjust, 0, success); in adjustMarkGlyphs()
420 glyphStorage.adjustPosition(glyphCount, xAdjust, 0, success); in adjustMarkGlyphs()
423 …nt, le_bool reverse, LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success) in adjustMarkGlyphs() argument
429 if (LE_FAILURE(success)) { in adjustMarkGlyphs()
434 success = LE_ILLEGAL_ARGUMENT_ERROR; in adjustMarkGlyphs()
445 glyphStorage.getGlyphPosition(0, prev, ignore, success); in adjustMarkGlyphs()
450 glyphStorage.getGlyphPosition(p + 1, next, ignore, success); in adjustMarkGlyphs()
453 glyphStorage.adjustPosition(p, xAdjust, 0, success); in adjustMarkGlyphs()
462 glyphStorage.adjustPosition(glyphCount, xAdjust, 0, success); in adjustMarkGlyphs()
471 LEGlyphStorage &glyphStorage, LEErrorCode &success) in mapCharsToGlyphs() argument
473 if (LE_FAILURE(success)) { in mapCharsToGlyphs()
477 glyphStorage.allocateGlyphArray(count, reverse, success); in mapCharsToGlyphs()
488 float x, float y, LEErrorCode &success) in layoutChars() argument
490 if (LE_FAILURE(success)) { in layoutChars()
495 success = LE_ILLEGAL_ARGUMENT_ERROR; in layoutChars()
505 glyphCount = computeGlyphs(chars, offset, count, max, rightToLeft, *fGlyphStorage, success); in layoutChars()
506 positionGlyphs(*fGlyphStorage, x, y, success); in layoutChars()
507 adjustGlyphPositions(chars, offset, count, rightToLeft, *fGlyphStorage, success); in layoutChars()
519 …nst LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, LEErrorCode &success) in layoutEngineFactory() argument
522 …ine::layoutEngineFactory(fontInstance, scriptCode, languageCode, LE_DEFAULT_FEATURE_FLAG, success); in layoutEngineFactory()
525 …fontInstance, le_int32 scriptCode, le_int32 languageCode, le_int32 typoFlags, LEErrorCode &success) in layoutEngineFactory() argument
531 if (LE_FAILURE(success)) { in layoutEngineFactory()
535 LEReferenceTo<GlyphSubstitutionTableHeader> gsubTable(fontInstance,gsubTableTag,success); in layoutEngineFactory()
544 …ev2ScriptTag && gsubTable.isValid() && gsubTable->coversScript(gsubTable, v2ScriptTag, success )) { in layoutEngineFactory()
545 …cOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, TRUE, gsubTable, success); in layoutEngineFactory()
547 …le->coversScript(gsubTable, scriptTag = OpenTypeLayoutEngine::getScriptTag(scriptCode), success)) { in layoutEngineFactory()
559 …OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, FALSE, gsubTable, success); in layoutEngineFactory()
563 … ArabicOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
568 …youtEngine(fontInstance, scriptCode, languageCode, typoFlags & ~kTypoFlagLiga, gsubTable, success); in layoutEngineFactory()
572 … HangulOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
583 … if (gsubTable->coversScriptAndLanguage(gsubTable, scriptTag, languageTag, success, TRUE)) { in layoutEngineFactory()
584 …new HanOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
590 … = new OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
597 …TibetanOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
601 …w KhmerOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
605 … = new OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success); in layoutEngineFactory()
609 LEReferenceTo<MorphTableHeader2> morxTable(fontInstance, morxTableTag, success); in layoutEngineFactory()
610 if (LE_SUCCESS(success) && morxTable.isValid() && SWAPL(morxTable->version)==0x00020000) { in layoutEngineFactory()
611 …esult = new GXLayoutEngine2(fontInstance, scriptCode, languageCode, morxTable, typoFlags, success); in layoutEngineFactory()
613 LEReferenceTo<MorphTableHeader> mortTable(fontInstance, mortTableTag, success); in layoutEngineFactory()
614 … if (LE_SUCCESS(success) && mortTable.isValid() && SWAPL(mortTable->version)==0x00010000) { // mort in layoutEngineFactory()
615 result = new GXLayoutEngine(fontInstance, scriptCode, languageCode, mortTable, success); in layoutEngineFactory()
629 …result = new IndicOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
635 … new UnicodeArabicOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
642 … result = new ThaiLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
646 …esult = new HangulOpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
650 … result = new LayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success); in layoutEngineFactory()
657 if (result && LE_FAILURE(success)) { in layoutEngineFactory()
663 success = LE_MEMORY_ALLOCATION_ERROR; in layoutEngineFactory()