• Home
  • Raw
  • Download

Lines Matching full:run

59     le_int32 style, run, runStyle;  in StyleRuns()  local
75 run = 0; in StyleRuns()
79 * Since the last run limit for each style run must be in StyleRuns()
85 fRunLimits[run] = 0x7FFFFFFF; in StyleRuns()
87 // find the minimum run limit for all the styles in StyleRuns()
89 if (styleRunArrays[style]->getLimit(currentRun[style]) < fRunLimits[run]) { in StyleRuns()
90 fRunLimits[run] = styleRunArrays[style]->getLimit(currentRun[style]); in StyleRuns()
94 // advance all styles whose current run is at this limit to the next run in StyleRuns()
98 if (styleRunArrays[style]->getLimit(currentRun[style]) == fRunLimits[run]) { in StyleRuns()
103 run += 1; in StyleRuns()
106 fRunCount = run; in StyleRuns()
305 * * Return the sub-fonts as the run fonts... could keep the mapping back to the client's FontRuns
377 // now build a LayoutEngine for each style run... in ParagraphLayout()
379 le_int32 run, runStart; in ParagraphLayout() local
388 for (run = 0; run < fStyleRunCount; run += 1) { in ParagraphLayout()
389 fStyleRunInfo[run].font = NULL; in ParagraphLayout()
390 fStyleRunInfo[run].runBase = 0; in ParagraphLayout()
391 fStyleRunInfo[run].runLimit = 0; in ParagraphLayout()
392 fStyleRunInfo[run].script = (UScriptCode)0; in ParagraphLayout()
393 fStyleRunInfo[run].locale = NULL; in ParagraphLayout()
394 fStyleRunInfo[run].level = 0; in ParagraphLayout()
395 fStyleRunInfo[run].glyphBase = 0; in ParagraphLayout()
396 fStyleRunInfo[run].engine = NULL; in ParagraphLayout()
397 fStyleRunInfo[run].glyphCount = 0; in ParagraphLayout()
398 fStyleRunInfo[run].glyphs = NULL; in ParagraphLayout()
399 fStyleRunInfo[run].positions = NULL; in ParagraphLayout()
404 for (runStart = 0, run = 0; run < fStyleRunCount; run += 1) { in ParagraphLayout()
405 fStyleRunInfo[run].font = fFontRuns->getFont(styleIndices[0]); in ParagraphLayout()
406 fStyleRunInfo[run].runBase = runStart; in ParagraphLayout()
407 fStyleRunInfo[run].runLimit = fStyleRunLimits[run]; in ParagraphLayout()
408 fStyleRunInfo[run].script = (UScriptCode) fScriptRuns->getValue(styleIndices[2]); in ParagraphLayout()
409 fStyleRunInfo[run].locale = fLocaleRuns->getLocale(styleIndices[3]); in ParagraphLayout()
410 fStyleRunInfo[run].level = (UBiDiLevel) fLevelRuns->getValue(styleIndices[1]); in ParagraphLayout()
411 fStyleRunInfo[run].glyphBase = fGlyphCount; in ParagraphLayout()
413 fStyleRunInfo[run].engine = LayoutEngine::layoutEngineFactory(fStyleRunInfo[run].font, in ParagraphLayout()
414 fStyleRunInfo[run].script, getLanguageCode(fStyleRunInfo[run].locale), layoutStatus); in ParagraphLayout()
420 …fStyleRunInfo[run].glyphCount = fStyleRunInfo[run].engine->layoutChars(fChars, runStart, fStyleRun… in ParagraphLayout()
421 fStyleRunInfo[run].level & 1, 0, 0, layoutStatus); in ParagraphLayout()
427 runStart = fStyleRunLimits[run]; in ParagraphLayout()
429 fGlyphCount += fStyleRunInfo[run].glyphCount; in ParagraphLayout()
451 for (runStart = 0, run = 0; run < fStyleRunCount; run += 1) { in ParagraphLayout()
452 LayoutEngine *engine = fStyleRunInfo[run].engine; in ParagraphLayout()
453 le_int32 glyphCount = fStyleRunInfo[run].glyphCount; in ParagraphLayout()
454 le_int32 glyphBase = fStyleRunInfo[run].glyphBase; in ParagraphLayout()
456 fStyleRunInfo[run].glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount); in ParagraphLayout()
457 fStyleRunInfo[run].positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2); in ParagraphLayout()
458 if ((fStyleRunInfo[run].glyphs == NULL) || in ParagraphLayout()
459 (fStyleRunInfo[run].positions == NULL)) { in ParagraphLayout()
464 engine->getGlyphs(fStyleRunInfo[run].glyphs, layoutStatus); in ParagraphLayout()
470 engine->getGlyphPositions(fStyleRunInfo[run].positions, layoutStatus); in ParagraphLayout()
483 …fGlyphWidths[glyphBase + glyph] = fStyleRunInfo[run].positions[glyph * 2 + 2] - fStyleRunInfo[run]… in ParagraphLayout()
486 if ((fStyleRunInfo[run].level & 1) != 0) { in ParagraphLayout()
491 runStart = fStyleRunLimits[run]; in ParagraphLayout()
494 fStyleRunInfo[run].engine = NULL; in ParagraphLayout()
589 le_int32 run; in ~ParagraphLayout() local
594 for (run = 0; run < fStyleRunCount; run += 1) { in ~ParagraphLayout()
595 LE_DELETE_ARRAY(fStyleRunInfo[run].glyphs); in ~ParagraphLayout()
596 LE_DELETE_ARRAY(fStyleRunInfo[run].positions); in ~ParagraphLayout()
598 fStyleRunInfo[run].glyphs = NULL; in ~ParagraphLayout()
599 fStyleRunInfo[run].positions = NULL; in ~ParagraphLayout()
715 le_int32 run; in computeLevels() local
719 for (ch = 0, run = 0; run < fLevelRuns->getCount(); run += 1) { in computeLevels()
720 UBiDiLevel runLevel = (UBiDiLevel) fLevelRuns->getValue(run) | UBIDI_LEVEL_OVERRIDE; in computeLevels()
721 le_int32 runLimit = fLevelRuns->getLimit(run); in computeLevels()
737 le_int32 run; in computeLevels() local
741 for (run = 0; run < levelRunCount; run += 1) { in computeLevels()
794 le_int32 run, offset, *si; in computeSubFonts() local
801 for (run = 0; run < styleRunCount; run += 1) { in computeSubFonts()
805 while (offset < styleRunLimits[run]) { in computeSubFonts()
806 …const LEFontInstance *subFont = runFont->getSubFont(fChars, &offset, styleRunLimits[run], script, … in computeSubFonts()
1031 le_int32 relStart, run, runLength; in computeVisualRuns() local
1041 for (run = startRun; run != stopRun; run += dir) { in computeVisualRuns()
1042 le_int32 firstChar = (run == firstRun)? runStart : fStyleRunInfo[run].runBase; in computeVisualRuns()
1043 le_int32 lastChar = (run == lastRun)? runEnd : fStyleRunInfo[run].runLimit - 1; in computeVisualRuns()
1045 appendRun(line, run, firstChar, lastChar); in computeVisualRuns()
1052 void ParagraphLayout::appendRun(ParagraphLayout::Line *line, le_int32 run, le_int32 firstChar, le_i… in appendRun() argument
1054 le_int32 glyphBase = fStyleRunInfo[run].glyphBase; in appendRun()
1077 if ((fStyleRunInfo[run].level & 1) != 0) { in appendRun()
1079 le_int32 last = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun()
1091 // from the middle of a layout. If we've got a right-to-left run, we in appendRun()
1093 // previous run, even though this glyph may be in the middle of the in appendRun()
1094 // run. in appendRun()
1095 fVisualRunLastX -= fStyleRunInfo[run].positions[leftGlyph * 2]; in appendRun()
1098 // the run's glyphs in appendRun()
1101 UBiDiDirection direction = ((fStyleRunInfo[run].level & 1) == 0)? UBIDI_LTR : UBIDI_RTL; in appendRun()
1107 LE_ARRAY_COPY(glyphs, &fStyleRunInfo[run].glyphs[leftGlyph], glyphCount); in appendRun()
1110 positions[outGlyph] = fStyleRunInfo[run].positions[inGlyph] + fVisualRunLastX; in appendRun()
1111 positions[outGlyph + 1] = fStyleRunInfo[run].positions[inGlyph + 1] + fVisualRunLastY; in appendRun()
1114 // Save the ending position of this run in appendRun()
1115 // to use for the start of the next run in appendRun()
1119 if ((fStyleRunInfo[run].level & 1) == 0) { in appendRun()
1127 le_int32 base = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun()
1134 line->append(fStyleRunInfo[run].font, direction, glyphCount, glyphs, positions, glyphToCharMap); in appendRun()
1143 le_int32 run; in getCharRun() local
1148 run = 0; in getCharRun()
1149 while (charIndex >= fStyleRunLimits[run]) { in getCharRun()
1150 run += 1; in getCharRun()
1153 return run; in getCharRun()