Index: Source/core/css/CSSFontSelector.cpp |
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp |
index bfe6bfefa7478aee003eba7bbd33af4d865e09bd..36abb664aa24ea7b43c1b79eff1da03c73d3cee3 100644 |
--- a/Source/core/css/CSSFontSelector.cpp |
+++ b/Source/core/css/CSSFontSelector.cpp |
@@ -43,6 +43,7 @@ |
#include "core/page/Settings.h" |
#include "core/platform/graphics/FontCache.h" |
#include "core/platform/graphics/SimpleFontData.h" |
+#include "core/platform/text/LocaleToScriptMapping.h" |
#include "wtf/text/AtomicString.h" |
using namespace std; |
@@ -168,7 +169,7 @@ static PassRefPtr<FontData> fontDataForGenericFamily(Document* document, const F |
return 0; |
AtomicString genericFamily; |
- UScriptCode script = fontDescription.script(); |
+ UScriptCode script = localeToScriptCodeForFontSelection(fontDescription.locale()); |
if (familyName == serifFamily) |
genericFamily = settings->serifFontFamily(script); |