summaryrefslogtreecommitdiffstats
path: root/ui/base/resource/resource_bundle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/resource/resource_bundle.cc')
-rw-r--r--ui/base/resource/resource_bundle.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
index e2646ab..848821c 100644
--- a/ui/base/resource/resource_bundle.cc
+++ b/ui/base/resource/resource_bundle.cc
@@ -177,6 +177,8 @@ const gfx::Font& ResourceBundle::GetFont(FontStyle style) {
return *medium_bold_font_;
case LargeFont:
return *large_font_;
+ case LargeBoldFont:
+ return *large_bold_font_;
default:
return *base_font_;
}
@@ -223,6 +225,11 @@ void ResourceBundle::LoadFontsIfNecessary() {
large_font_.reset(new gfx::Font());
*large_font_ = base_font_->DeriveFont(kLargeFontSizeDelta);
+
+ large_bold_font_.reset(new gfx::Font());
+ *large_bold_font_ =
+ base_font_->DeriveFont(kLargeFontSizeDelta,
+ base_font_->GetStyle() | gfx::Font::BOLD);
}
}