Lines Matching refs:le_int32
41 StyleRuns(const RunArray *styleRunArrays[], le_int32 styleCount);
45 le_int32 getRuns(le_int32 runLimits[], le_int32 styleIndices[]);
48 le_int32 fStyleCount;
49 le_int32 fRunCount;
51 le_int32 *fRunLimits;
52 le_int32 *fStyleIndices;
55 StyleRuns::StyleRuns(const RunArray *styleRunArrays[], le_int32 styleCount) in StyleRuns()
58 le_int32 maxRunCount = 0; in StyleRuns()
59 le_int32 style, run, runStyle; in StyleRuns()
60 le_int32 *currentRun = LE_NEW_ARRAY(le_int32, styleCount); in StyleRuns()
68 fRunLimits = LE_NEW_ARRAY(le_int32, maxRunCount); in StyleRuns()
69 fStyleIndices = LE_NEW_ARRAY(le_int32, maxRunCount * styleCount); in StyleRuns()
121 le_int32 StyleRuns::getRuns(le_int32 runLimits[], le_int32 styleIndices[]) in getRuns()
280 static void fillMissingCharToGlyphMapValues(le_int32 *charToGlyphMap, in fillMissingCharToGlyphMapValues()
281 le_int32 charCount) { in fillMissingCharToGlyphMapValues()
282 le_int32 lastValidGlyph = -1; in fillMissingCharToGlyphMapValues()
283 le_int32 ch; in fillMissingCharToGlyphMapValues()
313 ParagraphLayout::ParagraphLayout(const LEUnicode chars[], le_int32 count, in ParagraphLayout()
362 le_int32 styleCount = sizeof styleRunArrays / sizeof styleRunArrays[0]; in ParagraphLayout()
368 fStyleRunLimits = LE_NEW_ARRAY(le_int32, fStyleRunCount); in ParagraphLayout()
369 fStyleIndices = LE_NEW_ARRAY(le_int32, fStyleRunCount * styleCount); in ParagraphLayout()
378 le_int32 *styleIndices = fStyleIndices; in ParagraphLayout()
379 le_int32 run, runStart; in ParagraphLayout()
440 fGlyphToCharMap = LE_NEW_ARRAY(le_int32, fGlyphCount + 1); in ParagraphLayout()
441 fCharToMinGlyphMap = LE_NEW_ARRAY(le_int32, fCharCount + 1); in ParagraphLayout()
442 fCharToMaxGlyphMap = LE_NEW_ARRAY(le_int32, fCharCount + 1); in ParagraphLayout()
449 le_int32 glyph; in ParagraphLayout()
453 le_int32 glyphCount = fStyleRunInfo[run].glyphCount; in ParagraphLayout()
454 le_int32 glyphBase = fStyleRunInfo[run].glyphBase; in ParagraphLayout()
501 le_int32 chIndex; in ParagraphLayout()
508 le_int32 ch = fGlyphToCharMap[glyph]; in ParagraphLayout()
516 le_int32 ch = fGlyphToCharMap[glyph]; in ParagraphLayout()
589 le_int32 run; in ~ParagraphLayout()
617 le_bool ParagraphLayout::isComplex(const LEUnicode chars[], le_int32 count) in isComplex()
635 le_int32 ParagraphLayout::getAscent() const in getAscent()
644 le_int32 ParagraphLayout::getDescent() const in getDescent()
653 le_int32 ParagraphLayout::getLeading() const in getLeading()
676 le_int32 glyph = fCharToMinGlyphMap[fLineStart]; in nextLine()
714 le_int32 ch; in computeLevels()
715 le_int32 run; in computeLevels()
721 le_int32 runLimit = fLevelRuns->getLimit(run); in computeLevels()
733 le_int32 levelRunCount = ubidi_countRuns(fParaBidi, &bidiStatus); in computeLevels()
736 le_int32 logicalStart = 0; in computeLevels()
737 le_int32 run; in computeLevels()
738 le_int32 limit; in computeLevels()
757 le_int32 limit; in computeScripts()
788 le_int32 styleCount = sizeof styleRunArrays / sizeof styleRunArrays[0]; in computeSubFonts()
790 le_int32 styleRunCount = styleRuns.getRuns(NULL, NULL); in computeSubFonts()
791 le_int32 *styleRunLimits = LE_NEW_ARRAY(le_int32, styleRunCount); in computeSubFonts()
792 le_int32 *styleIndices = LE_NEW_ARRAY(le_int32, styleRunCount * styleCount); in computeSubFonts()
794 le_int32 run, offset, *si; in computeSubFonts()
803 le_int32 script = fScriptRuns->getValue(si[1]); in computeSubFonts()
828 le_int32 i, count = fFontRuns->getCount(); in computeMetrics()
829 le_int32 maxDL = 0; in computeMetrics()
833 le_int32 ascent = font->getAscent(); in computeMetrics()
834 le_int32 descent = font->getDescent(); in computeMetrics()
835 le_int32 leading = font->getLeading(); in computeMetrics()
836 le_int32 dl = descent + leading; in computeMetrics()
862 le_int32 languageCode;
943 static const le_int32 languageMapCount = ARRAY_SIZE(languageMap);
945 le_int32 ParagraphLayout::getLanguageCode(const Locale *locale) in getLanguageCode()
958 for (le_int32 i = 0; i < languageMapCount; i += 1) { in getLanguageCode()
969 le_int32 ParagraphLayout::getLanguageCode(const Locale *locale) in getLanguageCode()
984 le_int32 ParagraphLayout::previousBreak(le_int32 charIndex) in previousBreak()
1014 le_int32 dirRunCount, visualRun; in computeVisualRuns()
1031 le_int32 relStart, run, runLength; in computeVisualRuns()
1033 le_int32 runStart = fLineStart + relStart; in computeVisualRuns()
1034 le_int32 runEnd = runStart + runLength - 1; in computeVisualRuns()
1035 le_int32 firstRun = getCharRun(runStart); in computeVisualRuns()
1036 le_int32 lastRun = getCharRun(runEnd); in computeVisualRuns()
1037 le_int32 startRun = (runDirection == UBIDI_LTR)? firstRun : lastRun; in computeVisualRuns()
1038 le_int32 stopRun = (runDirection == UBIDI_LTR)? lastRun + 1 : firstRun - 1; in computeVisualRuns()
1039 le_int32 dir = (runDirection == UBIDI_LTR)? 1 : -1; 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()
1052 …aragraphLayout::appendRun(ParagraphLayout::Line *line, le_int32 run, le_int32 firstChar, le_int32 … in appendRun()
1054 le_int32 glyphBase = fStyleRunInfo[run].glyphBase; in appendRun()
1055 le_int32 inGlyph, outGlyph; in appendRun()
1060 le_int32 leftGlyph = fGlyphCount; in appendRun()
1061 le_int32 rightGlyph = -1; in appendRun()
1062 le_int32 ch; in appendRun()
1065 le_int32 minGlyph = fCharToMinGlyphMap[ch]; in appendRun()
1066 le_int32 maxGlyph = fCharToMaxGlyphMap[ch]; in appendRun()
1078 le_int32 swap = rightGlyph; in appendRun()
1079 le_int32 last = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun()
1102 le_int32 glyphCount = rightGlyph - leftGlyph; in appendRun()
1105 le_int32 *glyphToCharMap = LE_NEW_ARRAY(le_int32, glyphCount); in appendRun()
1127 le_int32 base = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun()
1137 le_int32 ParagraphLayout::getCharRun(le_int32 charIndex) in getCharRun()
1143 le_int32 run; in getCharRun()
1164 le_int32 i; in ~Line()
1173 le_int32 ParagraphLayout::Line::getAscent() const in getAscent()
1182 le_int32 ParagraphLayout::Line::getDescent() const in getDescent()
1191 le_int32 ParagraphLayout::Line::getLeading() const in getLeading()
1200 le_int32 ParagraphLayout::Line::getWidth() const in getWidth()
1208 le_int32 glyphCount = lastRun->getGlyphCount(); in getWidth()
1211 return (le_int32) positions[glyphCount * 2]; in getWidth()
1214 const ParagraphLayout::VisualRun *ParagraphLayout::Line::getVisualRun(le_int32 runIndex) const in getVisualRun()
1223 void ParagraphLayout::Line::append(const LEFontInstance *font, UBiDiDirection direction, le_int32 g… in append()
1224 … const LEGlyphID glyphs[], const float positions[], const le_int32 glyphToCharMap[]) in append()
1241 le_int32 maxDL = 0; in computeMetrics()
1243 for (le_int32 i = 0; i < fRunCount; i += 1) { in computeMetrics()
1244 le_int32 ascent = fRuns[i]->getAscent(); in computeMetrics()
1245 le_int32 descent = fRuns[i]->getDescent(); in computeMetrics()
1246 le_int32 leading = fRuns[i]->getLeading(); in computeMetrics()
1247 le_int32 dl = descent + leading; in computeMetrics()