From c9e1715cfd9e925ece5f94a5028d5bb302765281 Mon Sep 17 00:00:00 2001 From: "satorux@chromium.org" Date: Thu, 9 Sep 2010 04:36:52 +0000 Subject: Change UI font at startup time if necessary, based on the UI locale. As of writing, ChromeDroidSans is used as the UI font (see /etc/gtk-2.0/gtkrc). This setting does not work well for Japanese users as Chinese glyphs are used for Kanji characters. For Japanese UI, we should use a Japanese font. Introduce IDS_UI_FONT_FAMILY_CROS to control the UI font based on the UI locale. For now, app_locale_settings_ja.xtb only contains a non-default value: IPAPGothic. Just for the record, I originally tried to use "DroidSans Japanese" but for some reason, this caused space characters (0x20) to be garbled in the wrench menu. Hence, IPAPGotchic is chosen for now. TEST=manually on the netbook, and ubuntu BUG=chromium-os:4038 Review URL: http://codereview.chromium.org/3275008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58913 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/gtk_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/gtk/gtk_util.h') diff --git a/chrome/browser/gtk/gtk_util.h b/chrome/browser/gtk/gtk_util.h index 95200d4..efc7086 100644 --- a/chrome/browser/gtk/gtk_util.h +++ b/chrome/browser/gtk/gtk_util.h @@ -319,6 +319,9 @@ string16 GetStockPreferencesMenuLabel(); // ancestors up to its toplevel are visible. bool IsWidgetAncestryVisible(GtkWidget* widget); +// Sets the GTK font from the given font name (ex. "Arial Black, 10"). +void SetGtkFont(const std::string& font_name); + } // namespace gtk_util #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ -- cgit v1.1