Lines Matching refs:line

260 		const LineInfo& line = fLineInfos[i];
261 _DrawLine(view, offset, line);
392 const LineInfo& line = fLineInfos[glyph.lineIndex];
396 y1 = line.y;
397 y2 = y1 + line.height;
406 const LineInfo& line = fLineInfos[glyph.lineIndex];
410 y1 = line.y;
411 y2 = y1 + line.height;
425 // Above first line or empty text
432 // TODO: Optimize, can binary search line here:
434 const LineInfo& line = fLineInfos[lineIndex];
435 float lineBottom = floorf(line.y + line.height + 0.5);
443 // Found line
444 const LineInfo& line = fLineInfos[lineIndex];
445 int32 textOffset = line.textOffset;
463 // x2 in case the line is justified.
476 // Account for trailing line break at end of line, the
578 // to the next line. See what previous offset can be the end
579 // of the line.
587 // Found a place to perform a line break.
602 // on the current/last line
604 // * Fill in the line index.
614 // Start position of the next line
635 // The last line may not have been appended and initialized yet.
664 // Iterate all glyphs backwards. On the last character of the next line,
680 // pushed outside the line.
696 // line. Don't count trailing white space.
724 // space chars on the line.
742 LineInfo line = fLineInfos[lineIndex];
743 line.extraGlyphSpacing = charSpace;
744 line.extraWhiteSpacing = whiteSpace;
746 fLineInfos[lineIndex] = line;
852 LineInfo line(lineStart, y, 0.0f, 0.0f, 0.0f);
859 // Mark line index in glyph
879 line.layoutedSpans.push_back(subSpan);
880 _IncludeStyleInLine(line, span.Style());
889 line.layoutedSpans.push_back(span);
890 _IncludeStyleInLine(line, span.Style());
893 lineHeight = line.height;
896 fLineInfos.push_back(line);
899 fprintf(stderr, "bad_alloc occurred adding line to line infos\n");
908 ParagraphLayout::_IncludeStyleInLine(LineInfo& line,
912 if (ascent > line.maxAscent)
913 line.maxAscent = ascent;
916 if (descent > line.maxDescent)
917 line.maxDescent = descent;
923 if (height > line.height)
924 line.height = height;
930 const LineInfo& line) const
932 int textOffset = line.textOffset;
933 int spanCount = static_cast<int>(line.layoutedSpans.size());
935 const TextSpan& span = line.layoutedSpans[i];
951 const LineInfo& line = fLineInfos[glyph.lineIndex];
954 offset.y += line.y + line.maxAscent;
968 delta.nonspace = line.extraGlyphSpacing;
969 delta.space = line.extraWhiteSpacing;