Lines Matching refs:shape_bounds
488 const auto shape_bounds = ComputeShapeResultBounds(shape_result); in DEF_TEST() local
489 REPORTER_ASSERT(reporter, !shape_bounds.isEmpty()); in DEF_TEST()
491 const auto expected_l = text_point.x() - shape_bounds.width() * talign.l_selector; in DEF_TEST()
493 std::fabs(shape_bounds.left() - expected_l) < tsize.tolerance, in DEF_TEST()
494 "%f %f %f %f %d", shape_bounds.left(), expected_l, tsize.tolerance, in DEF_TEST()
497 const auto expected_r = text_point.x() + shape_bounds.width() * talign.r_selector; in DEF_TEST()
499 std::fabs(shape_bounds.right() - expected_r) < tsize.tolerance, in DEF_TEST()
500 "%f %f %f %f %d", shape_bounds.right(), expected_r, tsize.tolerance, in DEF_TEST()
557 const auto shape_bounds = ComputeShapeResultBounds(shape_result); in DEF_TEST() local
558 REPORTER_ASSERT(reporter, !shape_bounds.isEmpty()); in DEF_TEST()
560 const auto v_diff = text_box.height() - shape_bounds.height(); in DEF_TEST()
564 std::fabs(shape_bounds.top() - expected_t) < tsize.tolerance, in DEF_TEST()
565 "%f %f %f %f %d", shape_bounds.top(), expected_t, tsize.tolerance, in DEF_TEST()
570 std::fabs(shape_bounds.bottom() - expected_b) < tsize.tolerance, in DEF_TEST()
571 "%f %f %f %f %d", shape_bounds.bottom(), expected_b, tsize.tolerance, in DEF_TEST()