}
if (measurer != null) {
// need to set up renderer since the paragraph update in the
// formatting loop will not happen
AttributeMap style = fText.paragraphStyleAt(curParagraphStart);
renderer = getRendererFor(style);
measurer.setPosition(curLineStart);
}
}
if (measurer == null) {
// trigger paragraph update at start of formatting loop
curParagraphLimit = curParagraphStart;
curParagraphStart = 0;
}
fLTCurTextLen = newCurTextLen;
while (true) {
// System.out.println("line: " + fLTPosEnd + ", cls: " + curLineStart);
if (curLineStart >= curParagraphLimit) {
curParagraphStart = curParagraphLimit;
curParagraphLimit = fText.paragraphLimit(curParagraphStart);
AttributeMap style = fText.paragraphStyleAt(curParagraphStart);
renderer = getRendererFor(style);
if (curParagraphStart < curParagraphLimit) {
measurer = makeMeasurer(curParagraphStart, curParagraphLimit);
measurer.setPosition(curLineStart);