summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/text.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-09-01 11:30:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-09-01 12:59:43 +0200
commit590408329ee47496c813709a1bcc8cd35f6ebbb1 (patch)
tree339fd39c0fe8b06bba34d2917fb0d0229899b49c /vcl/qa/cppunit/text.cxx
parent5c988edee5dd87b3c1a67f62a554c6e1c09d1fc2 (diff)
adjust VclTextTest::testSimpleText
on my machine, after a recent update, the text is scaled slightly differently (Ubuntu 23.04) Change-Id: I5ac5e0c76a4cc4c0468a9f0e9186f95004d4d24f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156398 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa/cppunit/text.cxx')
-rw-r--r--vcl/qa/cppunit/text.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/text.cxx b/vcl/qa/cppunit/text.cxx
index 4d55b1bd91d5..a42b308f6c68 100644
--- a/vcl/qa/cppunit/text.cxx
+++ b/vcl/qa/cppunit/text.cxx
@@ -181,7 +181,7 @@ CPPUNIT_TEST_FIXTURE(VclTextTest, testSimpleText)
tools::Long height72 = getCharacterLeftSideHeight(device, Point(0, 30));
CPPUNIT_ASSERT_DOUBLES_EQUAL(height36 * 2, height72, 4);
tools::Long width72 = getCharacterBaseWidth(device, Point(20, 99));
- CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width72, 4);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width72, 5);
font.SetOrientation(2700_deg10);
device->Erase();
@@ -207,7 +207,7 @@ CPPUNIT_TEST_FIXTURE(VclTextTest, testSimpleText)
tools::Long height36pct200 = getCharacterLeftSideHeight(device, Point(0, 30));
CPPUNIT_ASSERT_DOUBLES_EQUAL(height36, height36pct200, 2);
tools::Long width36pct200 = getCharacterBaseWidth(device, Point(20, 99));
- CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width36pct200, 4);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width36pct200, 5);
// Test width scaled to 50%.
font = vcl::Font("DejaVu Sans", "Book", Size(18, 36));
@@ -218,7 +218,7 @@ CPPUNIT_TEST_FIXTURE(VclTextTest, testSimpleText)
device->SetFont(font);
device->DrawText(Point(10, 10), text);
exportDevice("simple-text-36-50pct.png", device);
- tools::Long height36pct50 = getCharacterLeftSideHeight(device, Point(0, 30));
+ tools::Long height36pct50 = getCharacterLeftSideHeight(device, Point(0, 40));
CPPUNIT_ASSERT_DOUBLES_EQUAL(height36, height36pct50, 2);
tools::Long width36pct50 = getCharacterBaseWidth(device, Point(15, 99));
CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 / 2, width36pct50, 2);