Lines Matching defs:width
70 return std::strncmp(b, base + a.start, a.width()) == 0;
266 // Slightly wider than the max intrinsic width.
1773 return TestCanvasWidth - 100 - line.offset().fX - line.width();
1860 return TestCanvasWidth - 100 - (line.offset().fX * 2 + line.width());
1993 return TestCanvasWidth - 100 - line.width();
2086 // All lines should be justified to the width of the paragraph
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);
3775 REPORTER_ASSERT(reporter, impl->lines()[0].width() > TestCanvasWidth / 2 - 20);
3776 REPORTER_ASSERT(reporter, impl->lines()[1].width() > TestCanvasWidth / 2 - 20);
3777 REPORTER_ASSERT(reporter, impl->lines()[2].width() > TestCanvasWidth / 2 - 20);
3816 // First and second lines must have the same width, the third one must be bigger
3818 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].width(), 285.858f, EPSILON100));
3819 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[1].width(), 329.709f, EPSILON100));
3820 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[2].width(), 120.619f, EPSILON100));
3903 REPORTER_ASSERT(reporter, line.width() == 998.25f);
3905 REPORTER_ASSERT(reporter, line.width() < 998.25f);
4889 REPORTER_ASSERT(reporter, tnum_line.clusters().width() == 4ull);
4890 REPORTER_ASSERT(reporter, pnum_line.clusters().width() == 4ull);
4892 REPORTER_ASSERT(reporter, impl->clusters()[0].width() == impl->clusters()[1].width());
4894 REPORTER_ASSERT(reporter, impl->clusters()[5].width() != impl->clusters()[6].width());
4896 REPORTER_ASSERT(reporter, impl->clusters()[2].width() == impl->clusters()[7].width());
4998 impl->text().begin() + run.textRange().start, 0, run.textRange().width(),
5199 REPORTER_ASSERT(reporter, rect.size() == 1 && rect[0].rect.width() == 0);
5536 SkScalar width, SkScalar height, SkScalar minWidth, SkScalar maxWidth, SkColor bg) {
5560 SkASSERT(width == paragraph->getMaxWidth());
5778 REPORTER_ASSERT(reporter, SkScalarIsFinite(impl->getPicture()->cullRect().width()));
5810 SkScalar width[4];
5811 std::tie(left[0], width[0]) = layout(TextAlign::kLeft);
5812 std::tie(left[1], width[1]) = layout(TextAlign::kCenter);
5813 std::tie(left[2], width[2]) = layout(TextAlign::kRight);
5814 std::tie(left[3], width[3]) = layout(TextAlign::kJustify);
5821 REPORTER_ASSERT(reporter, width[1] == width[0]);
5822 REPORTER_ASSERT(reporter, width[2] == width[0]);
5823 REPORTER_ASSERT(reporter, width[3] > width[0]); // delta == 0
5881 REPORTER_ASSERT(reporter, impl->runs()[0].textRange().width() == 4); // "abc "
5882 REPORTER_ASSERT(reporter, impl->runs()[1].textRange().width() == 2); // "{unresolved}"
5883 REPORTER_ASSERT(reporter, impl->runs()[2].textRange().width() == 1); // " "
5884 REPORTER_ASSERT(reporter, impl->runs()[3].textRange().width() == 2); // "{unresolved}"
5885 REPORTER_ASSERT(reporter, impl->runs()[4].textRange().width() == 4); // " def"
7129 SkScalar width = TestCanvasWidth;
7133 canvas.get()->clipRect(SkRect::MakeWH(width, height));
7195 paragraph->layout(width - 40);
7265 auto width = paragraph->getLongestLine();
7268 auto f1Pos = paragraph->getGlyphPositionAtCoordinate(width/6 - 5, height/2);
7269 auto f2Pos = paragraph->getGlyphPositionAtCoordinate(width/2 - 5, height/2);
7270 auto iPos = paragraph->getGlyphPositionAtCoordinate(width*5/6 - 5, height/2);
7326 auto width = paragraph->getLongestLine();
7329 auto pos00 = paragraph->getGlyphPositionAtCoordinate(width/4, height/4);
7330 auto pos10 = paragraph->getGlyphPositionAtCoordinate(width*3/4, height/2);
7331 auto pos01 = paragraph->getGlyphPositionAtCoordinate(width/4, height/2);
7332 auto pos11 = paragraph->getGlyphPositionAtCoordinate(width*3/4, height*3/4);
7384 auto width = paragraph->getLongestLine();
7388 auto f1Pos = paragraph->getGlyphPositionAtCoordinate(TestCanvasWidth - width*5/6, height/2);
7389 auto f2Pos = paragraph->getGlyphPositionAtCoordinate(TestCanvasWidth - width/3, height/2);
7390 auto iPos = paragraph->getGlyphPositionAtCoordinate(TestCanvasWidth - width/6, height/2);
7445 //auto width = paragraph->getLongestLine();
7451 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(resSK[0].rect.width(), 10.45f, EPSILON100));
7456 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(resKP[0].rect.width(), 11.22f));
7457 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(resKP[0].rect.width(), 11.22f, EPSILON100));
7462 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(resPh[0].rect.width(), 67.26f, EPSILON20));