Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2088)

Unified Diff: app/resource_bundle.cc

Issue 650074: New network menu button UI for ChromeOS.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: app/resource_bundle.cc
===================================================================
--- app/resource_bundle.cc (revision 39463)
+++ app/resource_bundle.cc (working copy)
@@ -146,6 +146,10 @@
if (!base_font_.get()) {
base_font_.reset(new gfx::Font());
+ bold_font_.reset(new gfx::Font());
+ *bold_font_ =
+ base_font_->DeriveFont(0, base_font_->style() | gfx::Font::BOLD);
+
small_font_.reset(new gfx::Font());
*small_font_ = base_font_->DeriveFont(-2);
@@ -164,6 +168,8 @@
const gfx::Font& ResourceBundle::GetFont(FontStyle style) {
LoadFontsIfNecessary();
switch (style) {
+ case BoldFont:
+ return *bold_font_;
case SmallFont:
return *small_font_;
case MediumFont:

Powered by Google App Engine
This is Rietveld 408576698