Lines Matching refs:lbh

208 	LineBreakHelper lbh;  in parseWords()  local
229 lbh.logClusters = eng->layoutData->logClustersPtr; in parseWords()
233 int wordStart = lbh.currentPosition; in parseWords()
248 lbh.logClusters = eng->layoutData->logClustersPtr; in parseWords()
250 lbh.currentPosition = current.position; in parseWords()
252 lbh.glyphs = eng->shapedGlyphs(&current); in parseWords()
254 if (lbh.fontEngine != fontEngine) { in parseWords()
255 lbh.fontEngine = fontEngine; in parseWords()
260 if (attributes[lbh.currentPosition].whiteSpace) { in parseWords()
261 while (lbh.currentPosition < end && attributes[lbh.currentPosition].whiteSpace) in parseWords()
262 addNextCluster(lbh.currentPosition, end, lbh.spaceData, lbh.glyphCount, in parseWords()
263 current, lbh.logClusters, lbh.glyphs); in parseWords()
266 …block->_words.push_back(TextWord(wordStart + blockFrom, lbh.tmpData.textWidth, -lbh.negativeRightB… in parseWords()
268 block->_words.back().add_rpadding(lbh.spaceData.textWidth); in parseWords()
269 block->_width += lbh.spaceData.textWidth; in parseWords()
270 lbh.spaceData.length = 0; in parseWords()
271 lbh.spaceData.textWidth = 0; in parseWords()
273 wordStart = lbh.currentPosition; in parseWords()
280 addNextCluster(lbh.currentPosition, end, lbh.tmpData, lbh.glyphCount, in parseWords()
281 current, lbh.logClusters, lbh.glyphs); in parseWords()
283 if (lbh.currentPosition >= eng->layoutData->string.length() in parseWords()
284 || attributes[lbh.currentPosition].whiteSpace in parseWords()
285 || isLineBreak(attributes, lbh.currentPosition)) { in parseWords()
286 lbh.calculateRightBearing(); in parseWords()
287 …block->_words.push_back(TextWord(wordStart + blockFrom, lbh.tmpData.textWidth, -lbh.negativeRightB… in parseWords()
288 block->_width += lbh.tmpData.textWidth; in parseWords()
289 lbh.tmpData.textWidth = 0; in parseWords()
290 lbh.tmpData.length = 0; in parseWords()
291 wordStart = lbh.currentPosition; in parseWords()
293 } else if (attributes[lbh.currentPosition].graphemeBoundary) { in parseWords()
294 if (!addingEachGrapheme && lbh.tmpData.textWidth > minResizeWidth) { in parseWords()
296 lbh.calculateRightBearingForPreviousGlyph(); in parseWords()
297 …back(TextWord(wordStart + blockFrom, -lastGraphemeBoundaryLine.textWidth, -lbh.negativeRightBearin… in parseWords()
299 lbh.tmpData.textWidth -= lastGraphemeBoundaryLine.textWidth; in parseWords()
300 lbh.tmpData.length -= lastGraphemeBoundaryLine.length; in parseWords()
306 lbh.calculateRightBearing(); in parseWords()
307 …block->_words.push_back(TextWord(wordStart + blockFrom, -lbh.tmpData.textWidth, -lbh.negativeRight… in parseWords()
308 block->_width += lbh.tmpData.textWidth; in parseWords()
309 lbh.tmpData.textWidth = 0; in parseWords()
310 lbh.tmpData.length = 0; in parseWords()
311 wordStart = lbh.currentPosition; in parseWords()
313 lastGraphemeBoundaryPosition = lbh.currentPosition; in parseWords()
314 lastGraphemeBoundaryLine = lbh.tmpData; in parseWords()
315 lbh.saveCurrentGlyph(); in parseWords()
318 } while (lbh.currentPosition < end); in parseWords()
320 if (lbh.currentPosition == end) in parseWords()