Index: Source/core/css/resolver/FontBuilder.cpp |
diff --git a/Source/core/css/resolver/FontBuilder.cpp b/Source/core/css/resolver/FontBuilder.cpp |
index 9fbdacc923c47c7059085f4ca71b80c5317ced2b..744a91499824f1b5394cedde8dda2a5c5ba5174b 100644 |
--- a/Source/core/css/resolver/FontBuilder.cpp |
+++ b/Source/core/css/resolver/FontBuilder.cpp |
@@ -31,6 +31,7 @@ |
#include "core/frame/Settings.h" |
#include "core/rendering/RenderTheme.h" |
#include "core/rendering/RenderView.h" |
+#include "platform/fonts/FontDescription.h" |
#include "platform/text/LocaleToScriptMapping.h" |
namespace WebCore { |
@@ -457,6 +458,7 @@ void FontBuilder::setScript(const String& locale) |
{ |
FontDescriptionChangeScope scope(this); |
+ scope.fontDescription().setLocale(locale); |
scope.fontDescription().setScript(localeToScriptCodeForFontSelection(locale)); |
} |