summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_util.h
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 04:36:52 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 04:36:52 +0000
commitc9e1715cfd9e925ece5f94a5028d5bb302765281 (patch)
tree2ab152b05f25f7e7d985f7fd9ab6b9a571bef0c4 /chrome/browser/gtk/gtk_util.h
parentee70311954923a02bfeaa9e6a57e2614fef97464 (diff)
downloadchromium_src-c9e1715cfd9e925ece5f94a5028d5bb302765281.zip
chromium_src-c9e1715cfd9e925ece5f94a5028d5bb302765281.tar.gz
chromium_src-c9e1715cfd9e925ece5f94a5028d5bb302765281.tar.bz2
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
Diffstat (limited to 'chrome/browser/gtk/gtk_util.h')
-rw-r--r--chrome/browser/gtk/gtk_util.h3
1 files changed, 3 insertions, 0 deletions
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_