Make the content browser in ChromeOS honor the DOM UI font setting.
commit6b4583fef71394eb1f2fc57250e89b1c4db8bb4b
authorjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 9 Sep 2010 16:58:50 +0000 (9 16:58 +0000)
committerjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 9 Sep 2010 16:58:50 +0000 (9 16:58 +0000)
tree74f311638bbc67ab31b6a4468a02aed0615eaa1a
parentf58b91ff62f64e679dc453825e8a2f89bcba2855
Make the content browser in ChromeOS honor the DOM  UI font setting.

At the moment, no font-family is specified. In that case, serif font is picked
by default by Chrome (exception being CJK for which sans-serif is picked).
Adding an attribute i18n-values for font-family will set up font-family
for the file. I'm not setting font-size because filebrowse.html uses em font-size
widely and the default value of 84% (set in locale_settings_cros.grd) will
disrupt the layout.

Change the DOM UI font for ChromeOS from 'Droid Sans' to 'Chrome Droid Sans'.
This may change again, but this matches the font used in the native UI (as
specified in gtkrc file) for now.

In addition, just as a 'sanitization', enclose font names (IDS_WEB_FONT_FAMILY)
with a space with a pair of single quotation marks.

BUG=chromiumos:6067 (http://crosbug.com/6067)
TEST=Build Chrome for ChromeOS and gmerge it to your build. Content browser does not use serif font any more. Instead, it uses 'Chrome Droid Sans'.

Review URL: http://codereview.chromium.org/3295010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58949 0039d316-1c4b-4281-b951-d872f2087c98
26 files changed:
chrome/app/resources/locale_settings_cros.grd
chrome/app/resources/locale_settings_linux.grd
chrome/app/resources/locale_settings_mac.grd
chrome/app/resources/locale_settings_win.grd
chrome/app/resources/platform_locale_settings/locale_settings_cros_am.xtb
chrome/app/resources/platform_locale_settings/locale_settings_cros_ja.xtb
chrome/app/resources/platform_locale_settings/locale_settings_cros_ko.xtb
chrome/app/resources/platform_locale_settings/locale_settings_cros_th.xtb
chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-CN.xtb
chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-TW.xtb
chrome/app/resources/platform_locale_settings/locale_settings_linux_ja.xtb
chrome/app/resources/platform_locale_settings/locale_settings_linux_ko.xtb
chrome/app/resources/platform_locale_settings/locale_settings_linux_ml.xtb
chrome/app/resources/platform_locale_settings/locale_settings_linux_th.xtb
chrome/app/resources/platform_locale_settings/locale_settings_linux_zh-CN.xtb
chrome/app/resources/platform_locale_settings/locale_settings_linux_zh-TW.xtb
chrome/app/resources/platform_locale_settings/locale_settings_mac_ja.xtb
chrome/app/resources/platform_locale_settings/locale_settings_mac_ko.xtb
chrome/app/resources/platform_locale_settings/locale_settings_mac_zh-CN.xtb
chrome/app/resources/platform_locale_settings/locale_settings_mac_zh-TW.xtb
chrome/app/resources/platform_locale_settings/locale_settings_win_ja.xtb
chrome/app/resources/platform_locale_settings/locale_settings_win_ko.xtb
chrome/app/resources/platform_locale_settings/locale_settings_win_th.xtb
chrome/app/resources/platform_locale_settings/locale_settings_win_zh-CN.xtb
chrome/app/resources/platform_locale_settings/locale_settings_win_zh-TW.xtb
chrome/browser/resources/filebrowse.html