summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2017-02-27 00:44:14 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2017-02-26 23:24:37 +0000
commitaf871d02914c9fc6a08079f67b4af71a198e166a (patch)
tree02bab5c32c9a18f508f353753f43902f8264091e /vcl/qa
parenteb7b03b052ffe8c2c577b2349987653db6c53f76 (diff)
Round glyph bbox on Mac similar to other platforms
Core Text API gives us float bounding box that we round ourselves, on other platforms we get rounding integers. Try to use the same rounding on Mac as FreeType does internally, hopefully this is the same on Windows. Change-Id: I7eb08464b008174270880575c4f3df28ede5c89d Reviewed-on: https://gerrit.libreoffice.org/34661 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/complextext.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index 58c10803e4c6..1cb09e03c992 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -59,12 +59,9 @@ void VclComplexTextTest::testArabic()
CPPUNIT_ASSERT_EQUAL(13L, pOutDev->GetTextHeight());
// exact bounding rectangle, not essentially the same as text width/height
-#ifndef MACOSX
- // FIXME: fails on mac, probably different rounding strategy.
Rectangle aBoundRect;
pOutDev->GetTextBoundRect(aBoundRect, aOneTwoThree);
CPPUNIT_ASSERT_EQUAL(Rectangle(0, 1, 71, 15), aBoundRect);
-#endif
// normal orientation
Rectangle aInput;