• Home
  • Raw
  • Download

Lines Matching refs:run

57     le_int32 style, run, runStyle;  in StyleRuns()  local
73 run = 0; in StyleRuns()
83 fRunLimits[run] = 0x7FFFFFFF; in StyleRuns()
87 if (styleRunArrays[style]->getLimit(currentRun[style]) < fRunLimits[run]) { in StyleRuns()
88 fRunLimits[run] = styleRunArrays[style]->getLimit(currentRun[style]); in StyleRuns()
96 if (styleRunArrays[style]->getLimit(currentRun[style]) == fRunLimits[run]) { in StyleRuns()
101 run += 1; in StyleRuns()
104 fRunCount = run; in StyleRuns()
339 le_int32 run, runStart; in ParagraphLayout() local
344 for (runStart = 0, run = 0; run < fStyleRunCount; run += 1) { in ParagraphLayout()
345 fStyleRunInfo[run].font = fFontRuns->getFont(styleIndices[0]); in ParagraphLayout()
346 fStyleRunInfo[run].runBase = runStart; in ParagraphLayout()
347 fStyleRunInfo[run].runLimit = fStyleRunLimits[run]; in ParagraphLayout()
348 fStyleRunInfo[run].script = (UScriptCode) fScriptRuns->getValue(styleIndices[2]); in ParagraphLayout()
349 fStyleRunInfo[run].locale = fLocaleRuns->getLocale(styleIndices[3]); in ParagraphLayout()
350 fStyleRunInfo[run].level = (UBiDiLevel) fLevelRuns->getValue(styleIndices[1]); in ParagraphLayout()
351 fStyleRunInfo[run].glyphBase = fGlyphCount; in ParagraphLayout()
353 fStyleRunInfo[run].engine = LayoutEngine::layoutEngineFactory(fStyleRunInfo[run].font, in ParagraphLayout()
354 fStyleRunInfo[run].script, getLanguageCode(fStyleRunInfo[run].locale), layoutStatus); in ParagraphLayout()
356 …fStyleRunInfo[run].glyphCount = fStyleRunInfo[run].engine->layoutChars(fChars, runStart, fStyleRun… in ParagraphLayout()
357 fStyleRunInfo[run].level & 1, 0, 0, layoutStatus); in ParagraphLayout()
359 runStart = fStyleRunLimits[run]; in ParagraphLayout()
361 fGlyphCount += fStyleRunInfo[run].glyphCount; in ParagraphLayout()
378 for (runStart = 0, run = 0; run < fStyleRunCount; run += 1) { in ParagraphLayout()
379 LayoutEngine *engine = fStyleRunInfo[run].engine; in ParagraphLayout()
380 le_int32 glyphCount = fStyleRunInfo[run].glyphCount; in ParagraphLayout()
381 le_int32 glyphBase = fStyleRunInfo[run].glyphBase; in ParagraphLayout()
383 fStyleRunInfo[run].glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount); in ParagraphLayout()
384 fStyleRunInfo[run].positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2); in ParagraphLayout()
386 engine->getGlyphs(fStyleRunInfo[run].glyphs, layoutStatus); in ParagraphLayout()
387 engine->getGlyphPositions(fStyleRunInfo[run].positions, layoutStatus); in ParagraphLayout()
391 …fGlyphWidths[glyphBase + glyph] = fStyleRunInfo[run].positions[glyph * 2 + 2] - fStyleRunInfo[run]… in ParagraphLayout()
394 if ((fStyleRunInfo[run].level & 1) != 0) { in ParagraphLayout()
399 runStart = fStyleRunLimits[run]; in ParagraphLayout()
402 fStyleRunInfo[run].engine = NULL; in ParagraphLayout()
485 le_int32 run; in ~ParagraphLayout() local
490 for (run = 0; run < fStyleRunCount; run += 1) { in ~ParagraphLayout()
491 LE_DELETE_ARRAY(fStyleRunInfo[run].glyphs); in ~ParagraphLayout()
492 LE_DELETE_ARRAY(fStyleRunInfo[run].positions); in ~ParagraphLayout()
494 fStyleRunInfo[run].glyphs = NULL; in ~ParagraphLayout()
495 fStyleRunInfo[run].positions = NULL; in ~ParagraphLayout()
606 le_int32 run; in computeLevels() local
610 for (ch = 0, run = 0; run < fLevelRuns->getCount(); run += 1) { in computeLevels()
611 UBiDiLevel runLevel = (UBiDiLevel) fLevelRuns->getValue(run) | UBIDI_LEVEL_OVERRIDE; in computeLevels()
612 le_int32 runLimit = fLevelRuns->getLimit(run); in computeLevels()
628 le_int32 run; in computeLevels() local
632 for (run = 0; run < levelRunCount; run += 1) { in computeLevels()
685 le_int32 run, offset, *si; in computeSubFonts() local
692 for (run = 0; run < styleRunCount; run += 1) { in computeSubFonts()
696 while (offset < styleRunLimits[run]) { in computeSubFonts()
697 …const LEFontInstance *subFont = runFont->getSubFont(fChars, &offset, styleRunLimits[run], script, … in computeSubFonts()
881 le_int32 relStart, run, runLength; in computeVisualRuns() local
891 for (run = startRun; run != stopRun; run += dir) { in computeVisualRuns()
892 le_int32 firstChar = (run == firstRun)? runStart : fStyleRunInfo[run].runBase; in computeVisualRuns()
893 le_int32 lastChar = (run == lastRun)? runEnd : fStyleRunInfo[run].runLimit - 1; in computeVisualRuns()
895 appendRun(line, run, firstChar, lastChar); in computeVisualRuns()
902 void ParagraphLayout::appendRun(ParagraphLayout::Line *line, le_int32 run, le_int32 firstChar, le_i… in appendRun() argument
904 le_int32 glyphBase = fStyleRunInfo[run].glyphBase; in appendRun()
927 if ((fStyleRunInfo[run].level & 1) != 0) { in appendRun()
929 le_int32 last = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun()
945 fVisualRunLastX -= fStyleRunInfo[run].positions[leftGlyph * 2]; in appendRun()
951 UBiDiDirection direction = ((fStyleRunInfo[run].level & 1) == 0)? UBIDI_LTR : UBIDI_RTL; in appendRun()
957 LE_ARRAY_COPY(glyphs, &fStyleRunInfo[run].glyphs[leftGlyph], glyphCount); in appendRun()
960 positions[outGlyph] = fStyleRunInfo[run].positions[inGlyph] + fVisualRunLastX; in appendRun()
961 positions[outGlyph + 1] = fStyleRunInfo[run].positions[inGlyph + 1] /* + fVisualRunLastY */; in appendRun()
969 if ((fStyleRunInfo[run].level & 1) == 0) { in appendRun()
977 le_int32 base = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun()
984 line->append(fStyleRunInfo[run].font, direction, glyphCount, glyphs, positions, glyphToCharMap); in appendRun()
993 le_int32 run; in getCharRun() local
998 run = 0; in getCharRun()
999 while (charIndex >= fStyleRunLimits[run]) { in getCharRun()
1000 run += 1; in getCharRun()
1003 return run; in getCharRun()