diff --git a/yg/yg_tests/screengl_test.cpp b/yg/yg_tests/screengl_test.cpp index fca274db3d..e60a40d2f0 100644 --- a/yg/yg_tests/screengl_test.cpp +++ b/yg/yg_tests/screengl_test.cpp @@ -529,6 +529,22 @@ namespace } }; + struct TestDrawFontOverflow + { + void DoDraw(shared_ptr p) + { + int startSize = 20; + int sizesCount = 20; + + int startY = 30; + for (size_t i = 0; i < sizesCount; ++i) + { + p->drawText(m2::PointD(10, startY), 0, startSize + i, "Simplicity is the ultimate sophistication. Leonardo Da Vinci", 0); + startY += startSize + i; + } + } + }; + struct TestDrawUtilsRect { void DoDraw(shared_ptr p) @@ -699,13 +715,14 @@ namespace // UNIT_TEST_GL(TestDrawPolyOverflow); // UNIT_TEST_GL(TestDrawFont); - UNIT_TEST_GL(TestDrawSingleSymbol); -// UNIT_TEST_GL(TestDrawEmptySymbol); +// UNIT_TEST_GL(TestDrawSingleSymbol); +// UNIT_TEST_GL(TestDrawEmptySymbol); // UNIT_TEST_GL(TestDrawSingleSymbolAndSolidPath); // UNIT_TEST_GL(TestDrawString); // UNIT_TEST_GL(TestDrawStringOnString); // UNIT_TEST_GL(TestDrawFontOnPath); // UNIT_TEST_GL(TestDrawFontOnPathWithOffset); + UNIT_TEST_GL(TestDrawFontOverflow); // UNIT_TEST_GL(TestDrawSGIConvex); // UNIT_TEST_GL(TestDrawPoly); // UNIT_TEST_GL(TestDrawSolidRect);