From 2b03b26fcd136791b9a48f4a05357efae347227b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 13 Dec 2011 12:03:58 +1100 Subject: Allow fractional pixel size return. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 5671d683e..3a37b3529 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1714,7 +1714,7 @@ XYPOSITION SurfaceD2D::WidthChar(Font &font_, char ch) { pTextLayout->Release(); } } - return int(width + 0.5); + return width; } XYPOSITION SurfaceD2D::Ascent(Font &font_) { -- cgit v1.2.3