diff options
-rw-r--r-- | webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp b/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp index 821c357..be2aa2a 100644 --- a/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp +++ b/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp @@ -81,8 +81,9 @@ void SimpleFontData::platformDestroy() SimpleFontData* SimpleFontData::smallCapsFontData(const FontDescription& fontDescription) const { if (!m_smallCapsFontData) { + const float smallCapsSize = lroundf(fontDescription.computedSize() * kSmallCapsFraction); m_smallCapsFontData = - new SimpleFontData(FontPlatformData(m_font, fontDescription.computedSize() * kSmallCapsFraction)); + new SimpleFontData(FontPlatformData(m_font, smallCapsSize)); } return m_smallCapsFontData; } |