forked from organicmaps/organicmaps
Test for correct text drawing when overflowing textTexture.
This commit is contained in:
parent
27f5148e8e
commit
b70bd9e3d1
1 changed files with 19 additions and 2 deletions
|
@ -529,6 +529,22 @@ namespace
|
|||
}
|
||||
};
|
||||
|
||||
struct TestDrawFontOverflow
|
||||
{
|
||||
void DoDraw(shared_ptr<yg::gl::Screen> 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<yg::gl::Screen> 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue