From e688ee18a968becf86de7901d7b2a0e0bd814d93 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Wed, 10 Dec 2008 23:45:38 +0000 Subject: Linux: round font ascents This is obviously black magic but appears to be slightly more correct then the previous code for layout tests. Review URL: http://codereview.chromium.org/13361 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6756 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp b/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp index be2aa2a..150e7c5 100644 --- a/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp +++ b/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp @@ -35,7 +35,7 @@ void SimpleFontData::platformInit() m_ascent = metrics.fVDMXAscent; m_descent = metrics.fVDMXDescent; } else { - m_ascent = SkScalarCeil(-metrics.fAscent); + m_ascent = SkScalarRound(-metrics.fAscent); m_descent = SkScalarRound(metrics.fHeight) - m_ascent; } -- cgit v1.1