Lines Matching defs:line
517 const std::string line =
520 drawLine(canvas, width, height, line, TextAlign::kLeft, 1, false, SK_ColorLTGRAY);
522 drawLine(canvas, width, height, line, TextAlign::kRight, 2, false, SK_ColorLTGRAY);
524 drawLine(canvas, width, height, line, TextAlign::kCenter, 3, false, SK_ColorLTGRAY);
526 drawLine(canvas, width, height, line, TextAlign::kJustify, 4, false, SK_ColorLTGRAY);
529 drawLine(canvas, width, height, line, TextAlign::kLeft, 1, true, SK_ColorLTGRAY);
531 drawLine(canvas, width, height, line, TextAlign::kRight, 2, true, SK_ColorLTGRAY);
533 drawLine(canvas, width, height, line, TextAlign::kCenter, 3, true, SK_ColorLTGRAY);
535 drawLine(canvas, width, height, line, TextAlign::kJustify, 4, true, SK_ColorLTGRAY);
980 const char* line =
997 builder.addText(line, strlen(line));
1050 const char* line =
1067 builder.addText(line, strlen(line));
2042 // check: line breaking and trailing spaces
2077 for (auto& line : impl->lines()) {
2079 SkDebugf("line[%d]: %f + %f\n", (int)(&line - impl->lines().begin()),
2080 line.offset().fX, line.shift());
2082 line.iterateThroughVisualRuns(true,
2084 *width = line.measureTextInsideOneRun(textRange, run, runOffset, 0, true, false).clip.width();
2488 //auto res1 = paragraph->getGlyphPositionAtCoordinate(line.width() + line.spacesWidth() / 2, line.offset().fY + 10);
2591 for (auto& line : lines) {
2592 SkDebugf("%zu: [%zu:%zu)\n", i++, line.trimmedText().start, line.trimmedText().end);
2686 "text1 with line break\n"
2687 "text2 without line break text without line break text without line break text without line break text without line break text without line break "
2688 "text3 with line break\n"
2689 "text4 without line break text without line break text without line break text without line break text without line break text without line break "
2690 "text5 with line break\n"
2713 SkPaint line;
2714 line.setColor(SK_ColorRED);
2715 line.setStyle(SkPaint::kStroke_Style);
2716 line.setAntiAlias(true);
2717 line.setStrokeWidth(1);
2737 canvas->drawLine(0, paragraph->getHeight(), paragraph->getMaxWidth(), paragraph->getHeight(), line);
3642 builder.addText("Notice that the line height increased on the lines with ");