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

Unified Diff: chrome/common/gfx/chrome_font_win.cc

Issue 62064: UI font localization part 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « chrome/browser/views/tabs/tab_renderer.cc ('k') | chrome/common/l10n_util_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gfx/chrome_font_win.cc
===================================================================
--- chrome/common/gfx/chrome_font_win.cc (revision 13518)
+++ chrome/common/gfx/chrome_font_win.cc (working copy)
@@ -11,7 +11,7 @@
#include "base/logging.h"
#include "base/win_util.h"
-#include "chrome/common/l10n_util.h"
+#include "chrome/common/l10n_util_win.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -78,7 +78,12 @@
NONCLIENTMETRICS metrics;
win_util::GetNonClientMetrics(&metrics);
+ l10n_util::AdjustUIFont(&metrics.lfMessageFont);
+
// See comment in ChromeFont::DeriveFont() about font size.
+ // TODO(jungshik): Add a per-locale resource entry for the minimum
+ // font size and actually enforce the lower-bound. 5 is way too small
+ // for CJK, Thai, and Indian locales.
DCHECK_GE(abs(metrics.lfMessageFont.lfHeight), 5);
HFONT font = CreateFontIndirect(&metrics.lfMessageFont);
DLOG_ASSERT(font);
« no previous file with comments | « chrome/browser/views/tabs/tab_renderer.cc ('k') | chrome/common/l10n_util_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698