diff options
author | jshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-02 21:36:59 +0000 |
---|---|---|
committer | jshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-02 21:36:59 +0000 |
commit | 60a3b8a58a6a89b35fb4d32ef2a2c0e7cab67239 (patch) | |
tree | 9d105d62bb58ae9fbd5e3c17d075170af57bc7ec /chrome/app/resources | |
parent | 9a6ee3bc91dbb302c73f2355236466cacfeb604f (diff) | |
download | chromium_src-60a3b8a58a6a89b35fb4d32ef2a2c0e7cab67239.zip chromium_src-60a3b8a58a6a89b35fb4d32ef2a2c0e7cab67239.tar.gz chromium_src-60a3b8a58a6a89b35fb4d32ef2a2c0e7cab67239.tar.bz2 |
Change the UI fonts for ko, th, ar, zh-* and hi.
1. WebUI fonts are explicitly specified. For ko and zh-*, we want to
use locale-specific fonts instead of Droid Sans Fallback until
http://crosbug.com/14691 is fixed.
2. Add an etnry for gtkrc to name locale-specific fonts. In addition,
use the size 10 instead of the default 9 in CrOS default gtkrc file.
Size 9 is too small for these locales. Size 11 or 12 would be even
better, but our UI wouldn't work well with that size, I'm afraid.
BUG=chromium-os:708
TEST=1. Change the UI language to Korean and make sure that the font used for
Korean characters in Omnibox, Menu and WebUI are NanumGothic instead of
Droid Sans Fallback. An easy way to tell is that in the menu, the horizontal
stroke of the second character of '로그인' is sharp instead of looking as
if there were two horizontal strokes.
2. Change the UI language to ar, zh-CN, zh-TW, ar and th and make sure that
characters in the gtk-based UI are slightly larger.
Review URL: http://codereview.chromium.org/6880329
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83796 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/resources')
6 files changed, 56 insertions, 1 deletions
diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_cros_ar.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_cros_ar.xtb index 269dc6f..e42a642 100644 --- a/chrome/app/resources/platform_locale_settings/locale_settings_cros_ar.xtb +++ b/chrome/app/resources/platform_locale_settings/locale_settings_cros_ar.xtb @@ -1,6 +1,14 @@ <?xml version="1.0" ?> <!DOCTYPE translationbundle> <translationbundle lang="ar"> +<translation id="IDS_WEB_FONT_FAMILY">Chrome Droid Sans, Droid Arabic Kufi, sans-serif</translation> <translation id="IDS_MINIMUM_FONT_SIZE">10</translation> <translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">10</translation> +<translation id="IDS_LOCALE_GTKRC"> # gtkrc.ar +gtk-font-name="ChromeDroidSans,Droid Arabic Kufi,sans-serif, 10" +style "OverrideTooltipFontStyle" = "TooltipStyle" { + font_name = "ChromeDroidSans,Droid Arabic Kufi,sans-serif, 10" +} +widget "gtk-tooltip*" style "OverrideTooltipFontStyle" +</translation> </translationbundle> diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_cros_hi.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_cros_hi.xtb index a6ddd5d..9582b78 100644 --- a/chrome/app/resources/platform_locale_settings/locale_settings_cros_hi.xtb +++ b/chrome/app/resources/platform_locale_settings/locale_settings_cros_hi.xtb @@ -1,4 +1,12 @@ <?xml version="1.0" ?> <!DOCTYPE translationbundle> <translationbundle lang="hi"> +<translation id="IDS_WEB_FONT_FAMILY">Chrome Droid Sans,Mangal,Lohit Hindi,sans-serif</translation> +<translation id="IDS_LOCALE_GTKRC"> # gtkrc.hi +gtk-font-name="ChromeDroidSans,Mangal,Lohit Hindi,sans-serif, 10" +style "OverrideTooltipFontStyle" = "TooltipStyle" { + font_name = "ChromeDroidSans,Mangal,Lohit Hindi,sans-serif, 10" +} +widget "gtk-tooltip*" style "OverrideTooltipFontStyle" +</translation> </translationbundle> diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_cros_ko.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_cros_ko.xtb index 13faa24..bb6de93 100644 --- a/chrome/app/resources/platform_locale_settings/locale_settings_cros_ko.xtb +++ b/chrome/app/resources/platform_locale_settings/locale_settings_cros_ko.xtb @@ -1,10 +1,19 @@ <?xml version="1.0" ?> <!DOCTYPE translationbundle> <translationbundle lang="ko"> +<!-- TODO(jungshik): remove this line once we fix bug 14691 --> +<translation id="IDS_WEB_FONT_FAMILY">Chrome Droid Sans, NanumGothic, sans-serif</translation> <translation id="IDS_STANDARD_FONT_FAMILY">NanumGothic</translation> <translation id="IDS_FIXED_FONT_FAMILY">Monospace</translation> <translation id="IDS_SERIF_FONT_FAMILY">NanumMyeongjo</translation> <translation id="IDS_SANS_SERIF_FONT_FAMILY">NanumGothic</translation> <translation id="IDS_MINIMUM_FONT_SIZE">10</translation> <translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">10</translation> +<translation id="IDS_LOCALE_GTKRC"> # gtkrc.ko +gtk-font-name="ChromeDroidSans,NanumGothic,sans-serif, 10" +style "OverrideTooltipFontStyle" = "TooltipStyle" { + font_name = "ChromeDroidSans,NanumGothic,sans-serif, 10" +} +widget "gtk-tooltip*" style "OverrideTooltipFontStyle" +</translation> </translationbundle> diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_cros_th.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_cros_th.xtb index 34a47d3a..7751bdd 100644 --- a/chrome/app/resources/platform_locale_settings/locale_settings_cros_th.xtb +++ b/chrome/app/resources/platform_locale_settings/locale_settings_cros_th.xtb @@ -4,4 +4,11 @@ <translation id="IDS_WEB_FONT_FAMILY">Chrome Droid Sans,Droid Sans Thai,sans-serif</translation> <translation id="IDS_MINIMUM_FONT_SIZE">10</translation> <translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">10</translation> +<translation id="IDS_LOCALE_GTKRC"> # gtkrc.th +gtk-font-name="ChromeDroidSans,Droid Sans Thai,sans-serif, 10" +style "OverrideTooltipFontStyle" = "TooltipStyle" { + font_name = "ChromeDroidSans,Droid Sans Thai,sans-serif, 10" +} +widget "gtk-tooltip*" style "OverrideTooltipFontStyle" +</translation> </translationbundle> diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-CN.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-CN.xtb index 28f92f4..7ee99e9 100644 --- a/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-CN.xtb +++ b/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-CN.xtb @@ -1,10 +1,21 @@ <?xml version="1.0" ?> <!DOCTYPE translationbundle> <translationbundle lang="zh-CN"> +<!-- TODO(jungshik): remove this line once we fix bug 14691 --> +<translation id="IDS_WEB_FONT_FAMILY">Chrome Droid Sans, Song ASC, sans-serif</translation> <translation id="IDS_STANDARD_FONT_FAMILY">Droid Sans Fallback</translation> <translation id="IDS_FIXED_FONT_FAMILY">Monospace</translation> <translation id="IDS_SERIF_FONT_FAMILY">Song ASC</translation> <translation id="IDS_SANS_SERIF_FONT_FAMILY">Droid Sans Fallback</translation> <translation id="IDS_MINIMUM_FONT_SIZE">12</translation> <translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">12</translation> +<!-- TODO(jungshik): Change Song ASC to Droid Sans Fallback once we fix + bug 14691 --> +<translation id="IDS_LOCALE_GTKRC"> # gtkrc.zh-CN +gtk-font-name="ChromeDroidSans,Song ASC,sans-serif, 10" +style "OverrideTooltipFontStyle" = "TooltipStyle" { + font_name = "ChromeDroidSans,Song ASC,sans-serif, 10" +} +widget "gtk-tooltip*" style "OverrideTooltipFontStyle" +</translation> </translationbundle> diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-TW.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-TW.xtb index e26b624..0f36807 100644 --- a/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-TW.xtb +++ b/chrome/app/resources/platform_locale_settings/locale_settings_cros_zh-TW.xtb @@ -3,8 +3,20 @@ <translationbundle lang="zh-TW"> <translation id="IDS_STANDARD_FONT_FAMILY">Droid Sans Fallback</translation> <translation id="IDS_FIXED_FONT_FAMILY">Monospace</translation> -<translation id="IDS_SERIF_FONT_FAMILY">PMingLiU</translation> +<!-- PMingLiU looks really bad. For now, use Song ASC (Simplified Chinese). --> +<translation id="IDS_SERIF_FONT_FAMILY">Song ASC</translation> <translation id="IDS_SANS_SERIF_FONT_FAMILY">Droid Sans Fallback</translation> <translation id="IDS_MINIMUM_FONT_SIZE">12</translation> <translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">12</translation> +<!-- TODO(jungshik): Change Song ASC to Droid Sans Fallback once we fix + bug 14691. Note that PMingLiU (another 'issue' to address) looks really + bad so we can't use it, either. +--> +<translation id="IDS_LOCALE_GTKRC"> # gtkrc.zh-TW +gtk-font-name="ChromeDroidSans,Song ASC,sans-serif, 10" +style "OverrideTooltipFontStyle" = "TooltipStyle" { + font_name = "ChromeDroidSans,Song ASC,sans-serif, 10" +} +widget "gtk-tooltip*" style "OverrideTooltipFontStyle" +</translation> </translationbundle> |