OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" | 5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "chrome/browser/browser.h" | 9 #include "chrome/browser/browser.h" |
10 #include "chrome/browser/browser_theme_provider.h" | 10 #include "chrome/browser/browser_theme_provider.h" |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 } | 582 } |
583 | 583 |
584 // static | 584 // static |
585 void TabRendererGtk::InitResources() { | 585 void TabRendererGtk::InitResources() { |
586 if (initialized_) | 586 if (initialized_) |
587 return; | 587 return; |
588 | 588 |
589 LoadTabImages(); | 589 LoadTabImages(); |
590 | 590 |
591 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 591 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
592 title_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); | 592 // Force the font size to 10pt. |
| 593 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont); |
| 594 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 10)); |
593 title_font_height_ = title_font_->height(); | 595 title_font_height_ = title_font_->height(); |
594 | 596 |
595 InitializeLoadingAnimationData(&rb, &loading_animation_data); | 597 InitializeLoadingAnimationData(&rb, &loading_animation_data); |
596 | 598 |
597 initialized_ = true; | 599 initialized_ = true; |
598 } | 600 } |
OLD | NEW |