- fix small caps rendering
Covered by an existing test,
* platform/graphics/win/FontDataWin.cpp:
(WebCore::FontData::smallCapsFontData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29112
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-01-02 Dan Bernstein <mitz@apple.com>
+
+ Reviewed by Sam Weinig.
+
+ - fix small caps rendering
+
+ Covered by an existing test,
+
+ * platform/graphics/win/FontDataWin.cpp:
+ (WebCore::FontData::smallCapsFontData):
+
2008-01-02 Antti Koivisto <antti@apple.com>
Reviewed by Oliver.
} else {
LOGFONT winfont;
GetObject(m_font.hfont(), sizeof(LOGFONT), &winfont);
- winfont.lfHeight = -lroundf(smallCapsHeight * m_font.useGDI() ? 1 : 32);
+ winfont.lfHeight = -lroundf(smallCapsHeight * (m_font.useGDI() ? 1 : 32));
HFONT hfont = CreateFontIndirect(&winfont);
m_smallCapsFontData = new FontData(FontPlatformData(hfont, smallCapsHeight, fontDescription.bold(), fontDescription.italic(), m_font.useGDI()));
}