Index: chrome/browser/renderer_preferences_util.cc |
diff --git a/chrome/browser/renderer_preferences_util.cc b/chrome/browser/renderer_preferences_util.cc |
index a78c638ca57417cd76cfbad19c7fc9cfa9e8b656..e1127e11b21f4f564a651a86c5554a25a70d47e5 100644 |
--- a/chrome/browser/renderer_preferences_util.cc |
+++ b/chrome/browser/renderer_preferences_util.cc |
@@ -15,6 +15,7 @@ |
#if defined(OS_LINUX) || defined(OS_ANDROID) |
#include "ui/gfx/font_render_params.h" |
+#include "ui/gfx/platform_font.h" |
#endif |
#if !defined(OS_ANDROID) |
@@ -110,6 +111,12 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs, |
prefs->use_autohinter = params.autohinter; |
prefs->use_bitmaps = params.use_bitmaps; |
prefs->subpixel_rendering = params.subpixel_rendering; |
+ |
+#if defined(OS_LINUX) |
+ scoped_refptr<gfx::PlatformFont> default_font( |
+ gfx::PlatformFont::CreateDefault()); |
+ prefs->default_font_size = default_font->GetFontSize(); |
+#endif // OS_LINUX |
#endif |
#if !defined(OS_MACOSX) |