Lines Matching refs:line

231     for (auto& line : impl->lines()) {
232 line.scanStyles(StyleType::kDecorations,
273 auto& line = impl->lines()[0];
275 const LineMetrics metrics = line.getMetrics();
1052 for (auto& line : impl->lines()) {
1053 line.scanStyles(StyleType::kDecorations,
1376 // Uniform line spacing.
1379 // line spacing is distributed evenly over and under the text.
1448 // edge and bottom edge will converge to a horizontal line:
1449 // - When half leading is used the vertical line is roughly the center of
1451 // - When half leading is disabled the line is the alphabetic baseline.
1537 // Uniform line spacing.
1540 // line spacing is distributed evenly over and under the text.
1594 // Uniform line spacing. The delta is introduced by the height rounding.
1597 // Trim the first line's top leading.
1599 // Trim the last line's bottom leading.
1605 // line spacing is distributed evenly over and under the text.
1621 "around and go to the next line. Sometimes, short sentence. Longer "
1705 "around and go to the next line. Sometimes, short sentence. Longer "
1772 auto calculate = [](const TextLine& line) -> SkScalar {
1773 return TestCanvasWidth - 100 - line.offset().fX - line.width();
1792 "around and go to the next line. Sometimes, short sentence. Longer "
1859 auto calculate = [](const TextLine& line) -> SkScalar {
1860 return TestCanvasWidth - 100 - (line.offset().fX * 2 + line.width());
1879 "around and go to the next line. Sometimes, short sentence. Longer "
1947 auto calculate = [](const TextLine& line) -> SkScalar {
1948 return line.offset().fX;
1992 auto calculate = [](const TextLine& line) -> SkScalar {
1993 return TestCanvasWidth - 100 - line.width();
1995 for (auto& line : impl->lines()) {
1996 if (&line == &impl->lines().back()) {
1997 REPORTER_ASSERT(reporter, calculate(line) > EPSILON100);
1999 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(line), 0, EPSILON100));
2087 // except for #0 (new line) and #5 (the last one)
2088 for (auto& line : impl->lines()) {
2089 ptrdiff_t num = &line - impl->lines().data();
2091 REPORTER_ASSERT(reporter, line.width() < TestCanvasWidth - 100);
2094 SkScalarNearlyEqual(line.width(), TestCanvasWidth - 100, EPSILON100),
2095 "#%zd: %f <= %d\n", num, line.width(), TestCanvasWidth - 100);
2150 const char* text4 = " the next line.";
2207 for (auto& line : impl->lines()) {
2208 line.scanStyles(
2299 auto& line = impl->lines()[0];
2301 line.scanStyles(
3491 // Checked: DIFF (line height rounding error)
3862 REPORTER_ASSERT(reporter, impl->lines()[4].offset().fY == 280); // Empty line
3901 for (auto& line : impl->lines()) {
3902 if (&line != impl->lines().end() - 1) {
3903 REPORTER_ASSERT(reporter, line.width() == 998.25f);
3905 REPORTER_ASSERT(reporter, line.width() < 998.25f);
3907 REPORTER_ASSERT(reporter, line.height() == 59);
3972 // Checked: DIFF (line breaking)
3978 "Sentence to layout at diff widths to get diff line counts. short words "
4019 "around and go to the next line. Sometimes, short sentence. Longer "
4044 // Check that the ellipsizer limited the text to one line and did not wrap to a second line.
4047 auto& line = impl->lines()[0];
4048 REPORTER_ASSERT(reporter, line.ellipsis() != nullptr);
4149 for (auto& line : impl->lines()) {
4150 line.scanStyles(StyleType::kShadow,
4200 for (auto& line : impl->lines()) {
4201 line.scanStyles(StyleType::kShadow,
4512 // Font is not resolved and the first line does not fit
4619 // Font is not resolved and the first line does not fit
4726 // Font is not resolved and the first line does not fit
5195 // Select a position at the second (empty) line
5620 const char* text = "Some text\nAnother line";
5675 const char* text = "One line of text\n";
5715 SkDEBUGCODE(auto& line = impl->lines()[i];)
5717 SkDEBUGCODE(auto top = line.offset().fY;)
5718 SkDEBUGCODE(auto bottom = line.offset().fY + line.height();)
6496 // (adds one invisible codepoint to the first line
6499 { 0, 1, 5, 6 }, // { just spaces; the end of the text considered as a new line in libtxt?!? }
6800 for (auto& line : impl->lines()) {
6801 line.scanStyles(StyleType::kDecorations,
6818 "around and go to the next line. Sometimes, short sentence. Longer "
6843 // Check that the ellipsizer limited the text to one line and did not wrap to a second line.
6891 // Regardless of TextHeightBehavior strut sets the line height
6945 REPORTER_ASSERT(reporter, impl->lineNumber() == 1); // But it's still one line
6985 REPORTER_ASSERT(reporter, impl->lineNumber() == 1); // But it's still one line
7497 auto& line = impl->lines()[0];
7499 line.iterateThroughVisualRuns(true,
7534 auto& line = impl->lines()[1];
7536 line.iterateThroughVisualRuns(true,
7551 "around and go to the next line. Sometimes, short sentence. Longer "
7554 "around and go to the next line. Sometimes, short sentence. Longer "
7659 for (auto& line : impl->lines()) {
7660 line.scanStyles(StyleType::kDecorations,