summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/port/rendering/RenderThemeWin.cpp6
1 files changed, 5 insertions, 1 deletions
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)