From 52eb73acbe2820d23d555a8108cd001b9ceb51fa Mon Sep 17 00:00:00 2001 From: "jungshik@google.com" Date: Fri, 8 Aug 2008 23:32:09 +0000 Subject: Make sure to Arial is used for buttons and other ui elements in Latin/Greek/Cyrillic pages. This tempoary special-casing is necessary because I added latin/greek/cyrillic entries in script2font map in base/gfx and set them to 'Times New Roman' because our default font for European Chrome is serif. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@607 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/rendering/RenderThemeWin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'webkit') diff --git a/webkit/port/rendering/RenderThemeWin.cpp b/webkit/port/rendering/RenderThemeWin.cpp index d0509e1..ea0eb73 100644 --- a/webkit/port/rendering/RenderThemeWin.cpp +++ b/webkit/port/rendering/RenderThemeWin.cpp @@ -244,7 +244,11 @@ static wchar_t* defaultGUIFont(Document* document) UScriptCode dominantScript = document->dominantScript(); const wchar_t* family = NULL; - if (dominantScript != USCRIPT_INVALID_CODE) { + // TODO(jungshik) : Special-casing of Latin/Greeek/Cyrillic should go away + // once GetFontFamilyForScript is enhanced to support GenericFamilyType for real. + // For now, we make sure that we use Arial to match IE for those scripts. + if (dominantScript != USCRIPT_LATIN && dominantScript != USCRIPT_CYRILLIC && + dominantScript != USCRIPT_GREEK && dominantScript != USCRIPT_INVALID_CODE) { family = gfx::GetFontFamilyForScript(dominantScript, gfx::GenericFamilyType::GENERIC_FAMILY_NONE); if (family) -- cgit v1.1