summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/resource_bundle.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/resource_bundle.cc b/app/resource_bundle.cc
index e3b4875..4acac71 100644
--- a/app/resource_bundle.cc
+++ b/app/resource_bundle.cc
@@ -160,6 +160,11 @@ void ResourceBundle::LoadFontsIfNecessary() {
AutoLock lock_scope(lock_);
if (!base_font_.get()) {
base_font_.reset(new gfx::Font());
+#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS)
+ // Toolkit views needs a less gigantor base font to more correctly match
+ // metrics for the bitmap-based UI.
+ *base_font_ = base_font_->DeriveFont(-1);
+#endif
small_font_.reset(new gfx::Font());
*small_font_ = base_font_->DeriveFont(-2);