Lines Matching refs:lbh

1820     LineBreakHelper lbh;  in layout_helper()  local
1822 lbh.maxGlyphs = maxGlyphs; in layout_helper()
1827 lbh.manualWrap = (wrapMode == QTextOption::ManualWrap || wrapMode == QTextOption::NoWrap); in layout_helper()
1840 lbh.currentPosition = line.from; in layout_helper()
1842 lbh.logClusters = eng->layoutData->logClustersPtr; in layout_helper()
1843 lbh.previousGlyph = 0; in layout_helper()
1849 lbh.resetRightBearing(); in layout_helper()
1858 lbh.logClusters = eng->layoutData->logClustersPtr; in layout_helper()
1860 lbh.currentPosition = qMax(line.from, current.position); in layout_helper()
1862 lbh.glyphs = eng->shapedGlyphs(&current); in layout_helper()
1864 if (lbh.fontEngine != fontEngine) { in layout_helper()
1865 lbh.fontEngine = fontEngine; in layout_helper()
1866 lbh.minimumRightBearing = qMin(QFixed(), in layout_helper()
1872 lbh.tmpData.leading = qMax(lbh.tmpData.leading + lbh.tmpData.ascent, in layout_helper()
1873 current.leading + current.ascent) - qMax(lbh.tmpData.ascent, in layout_helper()
1877 lbh.tmpData.ascent = qMax(lbh.tmpData.ascent, current.ascent); in layout_helper()
1878 lbh.tmpData.descent = qMax(lbh.tmpData.descent, current.descent); in layout_helper()
1882 lbh.whiteSpaceOrObject = true; in layout_helper()
1883 if (lbh.checkFullOtherwiseExtend(line)) in layout_helper()
1886 QFixed x = line.x + line.textWidth + lbh.tmpData.textWidth + lbh.spaceData.textWidth; in layout_helper()
1891 lbh.logClusters = eng->layoutData->logClustersPtr; in layout_helper()
1892 lbh.glyphs = eng->shapedGlyphs(&current); in layout_helper()
1894 lbh.spaceData.textWidth += tabWidth; in layout_helper()
1895 lbh.spaceData.length++; in layout_helper()
1899 lbh.glyphCount += qRound(tabWidth / averageCharWidth); in layout_helper()
1901 if (lbh.checkFullOtherwiseExtend(line)) in layout_helper()
1904 lbh.whiteSpaceOrObject = true; in layout_helper()
1907 if (!line.length && !lbh.tmpData.length) in layout_helper()
1910 if (lbh.checkFullOtherwiseExtend(line)) in layout_helper()
1913 addNextCluster(lbh.currentPosition, end, lbh.tmpData, lbh.glyphCount, in layout_helper()
1914 current, lbh.logClusters, lbh.glyphs); in layout_helper()
1916 lbh.tmpData.length++; in layout_helper()
1917 lbh.calculateRightBearingForPreviousGlyph(); in layout_helper()
1919 line += lbh.tmpData; in layout_helper()
1922 lbh.whiteSpaceOrObject = true; in layout_helper()
1923 lbh.tmpData.length++; in layout_helper()
1931 lbh.tmpData.ascent = qMax(lbh.tmpData.ascent, current.ascent); in layout_helper()
1932 lbh.tmpData.descent = qMax(lbh.tmpData.descent, current.descent); in layout_helper()
1939 lbh.tmpData.textWidth += current.width; in layout_helper()
1942 ++lbh.glyphCount; in layout_helper()
1943 if (lbh.checkFullOtherwiseExtend(line)) in layout_helper()
1945 } else if (attributes[lbh.currentPosition].whiteSpace in layout_helper()
1946 … && eng->layoutData->string.at(lbh.currentPosition).decompositionTag() != QChar::NoBreak) { in layout_helper()
1947 lbh.whiteSpaceOrObject = true; in layout_helper()
1948 while (lbh.currentPosition < end in layout_helper()
1949 && attributes[lbh.currentPosition].whiteSpace in layout_helper()
1950 … && eng->layoutData->string.at(lbh.currentPosition).decompositionTag() != QChar::NoBreak) { in layout_helper()
1951 addNextCluster(lbh.currentPosition, end, lbh.spaceData, lbh.glyphCount, in layout_helper()
1952 current, lbh.logClusters, lbh.glyphs); in layout_helper()
1955 if (!lbh.manualWrap && lbh.spaceData.textWidth > line.width) { in layout_helper()
1956 lbh.spaceData.textWidth = line.width; // ignore spaces that fall out of the line. in layout_helper()
1960 lbh.whiteSpaceOrObject = false; in layout_helper()
1962 lbh.saveCurrentGlyph(); in layout_helper()
1965 addNextCluster(lbh.currentPosition, end, lbh.tmpData, lbh.glyphCount, in layout_helper()
1966 current, lbh.logClusters, lbh.glyphs, &accumulatedTextWidth); in layout_helper()
1973 bool isBreakableSpace = lbh.currentPosition < eng->layoutData->string.length() in layout_helper()
1974 && attributes[lbh.currentPosition].whiteSpace in layout_helper()
1975 … && eng->layoutData->string.at(lbh.currentPosition).decompositionTag() != QChar::NoBreak; in layout_helper()
1977 if (lbh.currentPosition >= eng->layoutData->string.length() in layout_helper()
1979 || attributes[lbh.currentPosition].lineBreak) { in layout_helper()
1982 } else if (attributes[lbh.currentPosition].graphemeBoundary) { in layout_helper()
1984 lbh.minw = qMax(accumulatedTextWidth, lbh.minw); in layout_helper()
1990 } while (lbh.currentPosition < end); in layout_helper()
1991 lbh.minw = qMax(accumulatedTextWidth, lbh.minw); in layout_helper()
1993 if (lbh.currentPosition > 0 && lbh.currentPosition <= end in layout_helper()
1994 && (lbh.currentPosition == end || attributes[lbh.currentPosition].lineBreak) in layout_helper()
1995 && eng->layoutData->string.at(lbh.currentPosition - 1) == QChar::SoftHyphen) { in layout_helper()
2012lbh.currentSoftHyphenWidth = lbh.glyphs.advances[lbh.logClusters[lbh.currentPosition - 1]]; in layout_helper()
2023 QFixed previousRightBearing = lbh.rightBearing; in layout_helper()
2034 if ((lbh.calculateNewWidth(line) + qAbs(lbh.minimumRightBearing)) > line.width) in layout_helper()
2035 lbh.calculateRightBearing(); in layout_helper()
2037 if (lbh.checkFullOtherwiseExtend(line)) { in layout_helper()
2043 lbh.rightBearing = previousRightBearing; in layout_helper()
2045 lbh.calculateRightBearingForPreviousGlyph(); in layout_helper()
2047 line.textWidth += lbh.commitedSoftHyphenWidth; in layout_helper()
2052 lbh.saveCurrentGlyph(); in layout_helper()
2054 if (lbh.currentPosition == end) in layout_helper()
2058 lbh.checkFullOtherwiseExtend(line); in layout_helper()
2059 line.textWidth += lbh.commitedSoftHyphenWidth; in layout_helper()
2064 if (lbh.rightBearing == LineBreakHelper::RightBearingNotCalculated && !lbh.whiteSpaceOrObject) in layout_helper()
2065 lbh.calculateRightBearing(); in layout_helper()
2068 line.textWidth += lbh.negativeRightBearing(); in layout_helper()
2072 lbh.tmpData.length, lbh.tmpData.textWidth.toReal(), in layout_helper()
2073 lbh.spaceData.length, lbh.spaceData.textWidth.toReal()); in layout_helper()
2074 line += lbh.tmpData; in layout_helper()
2119 line.descent.toReal(), line.textWidth.toReal(), lbh.spaceData.width.toReal()); in layout_helper()
2123 ? lbh.spaceData.textWidth in layout_helper()
2126 if ((lbh.maxGlyphs != INT_MAX && lbh.glyphCount > lbh.maxGlyphs) in layout_helper()
2127 || (lbh.maxGlyphs == INT_MAX && line.textWidth > (line.width - trailingSpace))) { in layout_helper()
2130 layout_helper(lbh.maxGlyphs); in layout_helper()
2136 if (lbh.manualWrap) { in layout_helper()
2140 eng->minWidth = qMax(eng->minWidth, lbh.minw); in layout_helper()
2145 eng->maxWidth += lbh.spaceData.textWidth; in layout_helper()
2148 if (lbh.spaceData.length) { in layout_helper()
2149 line.trailingSpaces = lbh.spaceData.length; in layout_helper()