summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjshin <jshin@chromium.org>2014-12-19 18:01:17 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-20 02:02:12 +0000
commitb964e3614ed0e915a2c46a09d46c32152919b8a9 (patch)
tree02e9c11a0e39cef63226c455a2bbe7eaded030e0
parent57ae14b46892d4423e281f672258ed095456b365 (diff)
downloadchromium_src-b964e3614ed0e915a2c46a09d46c32152919b8a9.zip
chromium_src-b964e3614ed0e915a2c46a09d46c32152919b8a9.tar.gz
chromium_src-b964e3614ed0e915a2c46a09d46c32152919b8a9.tar.bz2
Modernize CJK default font prefs on Mac/Windows/Linux
On Mac, set the Korean standard/sans-serif/web UI fonts to Apple SD Gothic Neo instead of 20(?)-year old 'AppleGothic'. On Windows (again replacing ~20 year old fonts with more modern fonts) : 1. ko/{std,sans-serif} : Gulim -> Malgun Gothic 2. ja/{std,sans-serif} : MS PGothic -> Meiryo 3. zh-CN/{std,sans-serif} : Simsun -> Microsoft YaHei 4. zh-TW/{std,sans-serif} : PMingLiu -> Microsoft JhengHei The Windows change will make the default font for web pages (user can changes in sesttings) the same as that used in Chrome's web UI on Windows Vista or later. On Linux, add 'Noto Sans CJK {JP,KR,SC,TC} at the beginning of the web UI font fallback list. If they're installed, they'll be used (more in line with Chrome OS). If not, other fonts will be used. BUG=368568 TEST=On Windows, the fonts listed above are used (per dom inspector). data:text/html,<span lang="ko">&#xac00;</span> data:text/html,<span lang="ja">&#x304b;&#x30ab;&#x4e00;</span> data:text/html,<span lang="zh-CN">&#x4e00;&#x65e5;</span> data:text/html,<span lang="zh-TW">&#x4e00;&#x65e5;</span> Review URL: https://codereview.chromium.org/808273002 Cr-Commit-Position: refs/heads/master@{#309321}
-rw-r--r--chrome/app/resources/locale_settings_mac.grd4
-rw-r--r--chrome/app/resources/locale_settings_win.grd16
-rw-r--r--chrome/app/resources/platform_locale_settings/locale_settings_mac_ko.xtb4
-rw-r--r--chrome/app/resources/platform_locale_settings/locale_settings_win_ko.xtb4
-rw-r--r--ui/strings/translations/app_locale_settings_ja.xtb2
-rw-r--r--ui/strings/translations/app_locale_settings_ko.xtb4
-rw-r--r--ui/strings/translations/app_locale_settings_zh-CN.xtb5
-rw-r--r--ui/strings/translations/app_locale_settings_zh-TW.xtb5
8 files changed, 25 insertions, 19 deletions
diff --git a/chrome/app/resources/locale_settings_mac.grd b/chrome/app/resources/locale_settings_mac.grd
index ef915d7..830a747 100644
--- a/chrome/app/resources/locale_settings_mac.grd
+++ b/chrome/app/resources/locale_settings_mac.grd
@@ -191,7 +191,7 @@
<!-- The default value for |WebPreference::standard_font_family_map| for
Korean script. -->
<message name="IDS_STANDARD_FONT_FAMILY_KOREAN" use_name_for_id="true">
- AppleGothic
+ Apple SD Gothic Neo
</message>
<!-- The default value for |WebPreference::serif_font_family_map| for
@@ -203,7 +203,7 @@
<!-- The default value for |WebPreference::sans_serif_font_family_map| for
Korean script. -->
<message name="IDS_SANS_SERIF_FONT_FAMILY_KOREAN" use_name_for_id="true">
- AppleGothic
+ Apple SD Gothic Neo
</message>
<!-- The default value for |WebPreference::standard_font_family_map| for
diff --git a/chrome/app/resources/locale_settings_win.grd b/chrome/app/resources/locale_settings_win.grd
index f0724b5..aa1335e 100644
--- a/chrome/app/resources/locale_settings_win.grd
+++ b/chrome/app/resources/locale_settings_win.grd
@@ -214,7 +214,7 @@
<!-- The default value for |WebPreference::standard_font_family_map| for
Japanese script. -->
<message name="IDS_STANDARD_FONT_FAMILY_JAPANESE" use_name_for_id="true">
- MS PGothic
+ Meiryo
</message>
<!-- The default value for |WebPreference::fixed_font_family_map| for
@@ -232,13 +232,13 @@
<!-- The default value for |WebPreference::sans_serif_font_family_map| for
Japanese script. -->
<message name="IDS_SANS_SERIF_FONT_FAMILY_JAPANESE" use_name_for_id="true">
- MS PGothic
+ Meiryo
</message>
<!-- The default value for |WebPreference::standard_font_family_map| for
Korean script. -->
<message name="IDS_STANDARD_FONT_FAMILY_KOREAN" use_name_for_id="true">
- Gulim
+ Malgun Gothic
</message>
<!-- The default value for |WebPreference::fixed_font_family_map| for
@@ -256,7 +256,7 @@
<!-- The default value for |WebPreference::sans_serif_font_family_map| for
Korean script. -->
<message name="IDS_SANS_SERIF_FONT_FAMILY_KOREAN" use_name_for_id="true">
- Gulim
+ Malgun Gothic
</message>
<!-- The default value for |WebPreference::cursive_font_family_map| for
@@ -268,7 +268,7 @@
<!-- The default value for |WebPreference::standard_font_family_map| for
Simplified Chinese script. -->
<message name="IDS_STANDARD_FONT_FAMILY_SIMPLIFIED_HAN" use_name_for_id="true">
- Simsun
+ Microsoft YaHei
</message>
<!-- The default value for |WebPreference::fixed_font_family_map| for
@@ -286,13 +286,13 @@
<!-- The default value for |WebPreference::sans_serif_font_family_map| for
Simplified Chinese script. -->
<message name="IDS_SANS_SERIF_FONT_FAMILY_SIMPLIFIED_HAN" use_name_for_id="true">
- Simsun
+ Microsoft YaHei
</message>
<!-- The default value for |WebPreference::standard_font_family_map| for
Traditional Chinese script. -->
<message name="IDS_STANDARD_FONT_FAMILY_TRADITIONAL_HAN" use_name_for_id="true">
- PMingLiU
+ Microsoft JhengHei
</message>
<!-- The default value for |WebPreference::fixed_font_family_map| for
@@ -310,7 +310,7 @@
<!-- The default value for |WebPreference::sans_serif_font_family_map| for
Traditional Chinese script. -->
<message name="IDS_SANS_SERIF_FONT_FAMILY_TRADITIONAL_HAN" use_name_for_id="true">
- PMingLiU
+ Microsoft JhengHei
</message>
<!-- The default value for |WebPreference::default_font_size| -->
diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_mac_ko.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_mac_ko.xtb
index 68ded18..82c5dfc 100644
--- a/chrome/app/resources/platform_locale_settings/locale_settings_mac_ko.xtb
+++ b/chrome/app/resources/platform_locale_settings/locale_settings_mac_ko.xtb
@@ -1,9 +1,9 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="ko">
-<translation id="IDS_STANDARD_FONT_FAMILY">AppleGothic</translation>
+<translation id="IDS_STANDARD_FONT_FAMILY">Apple SD Gothic Neo</translation>
<translation id="IDS_SERIF_FONT_FAMILY">AppleMyungjo</translation>
-<translation id="IDS_SANS_SERIF_FONT_FAMILY">AppleGothic</translation>
+<translation id="IDS_SANS_SERIF_FONT_FAMILY">Apple SD Gothic Neo</translation>
<translation id="IDS_MINIMUM_FONT_SIZE">10</translation>
<translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">10</translation>
</translationbundle>
diff --git a/chrome/app/resources/platform_locale_settings/locale_settings_win_ko.xtb b/chrome/app/resources/platform_locale_settings/locale_settings_win_ko.xtb
index 5c367b8..af86dd0 100644
--- a/chrome/app/resources/platform_locale_settings/locale_settings_win_ko.xtb
+++ b/chrome/app/resources/platform_locale_settings/locale_settings_win_ko.xtb
@@ -1,10 +1,10 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="ko">
-<translation id="IDS_STANDARD_FONT_FAMILY">Gulim</translation>
+<translation id="IDS_STANDARD_FONT_FAMILY">Malgun Gothic</translation>
<translation id="IDS_FIXED_FONT_FAMILY">Gulimche</translation>
<translation id="IDS_SERIF_FONT_FAMILY">Batang</translation>
-<translation id="IDS_SANS_SERIF_FONT_FAMILY">Gulim</translation>
+<translation id="IDS_SANS_SERIF_FONT_FAMILY">Malgun Gothic</translation>
<translation id="IDS_CURSIVE_FONT_FAMILY">Gungsuh</translation>
<translation id="IDS_MINIMUM_FONT_SIZE">10</translation>
<translation id="IDS_MINIMUM_LOGICAL_FONT_SIZE">10</translation>
diff --git a/ui/strings/translations/app_locale_settings_ja.xtb b/ui/strings/translations/app_locale_settings_ja.xtb
index 0682a22..8a36c05 100644
--- a/ui/strings/translations/app_locale_settings_ja.xtb
+++ b/ui/strings/translations/app_locale_settings_ja.xtb
@@ -4,7 +4,7 @@
<translation id="IDS_MINIMUM_UI_FONT_SIZE">10</translation>
<translation id="IDS_UI_FONT_FAMILY_CROS">Noto Sans UI,Noto Sans CJK JP,ui-sans, 13px</translation>
<if expr="is_win">
- <translation id="IDS_WEB_FONT_FAMILY">'Segoe UI',Arial,Meiryo,'MS PGothic',sans-serif</translation>
+ <translation id="IDS_WEB_FONT_FAMILY">'Segoe UI',Arial,Meiryo,sans-serif</translation>
<translation id="IDS_WEB_FONT_FAMILY_XP">Arial,Meiryo,'MS PGothic',sans-serif</translation>
</if>
<if expr="is_macosx or is_ios">
diff --git a/ui/strings/translations/app_locale_settings_ko.xtb b/ui/strings/translations/app_locale_settings_ko.xtb
index 7a527a2..c215e66 100644
--- a/ui/strings/translations/app_locale_settings_ko.xtb
+++ b/ui/strings/translations/app_locale_settings_ko.xtb
@@ -8,10 +8,10 @@
<translation id="IDS_WEB_FONT_FAMILY_XP">Arial,'Malgun Gothic',Gulim,sans-serif</translation>
</if>
<if expr="is_macosx or is_ios">
- <translation id="IDS_WEB_FONT_FAMILY">Helvetica,AppleGothic,sans-serif</translation>
+ <translation id="IDS_WEB_FONT_FAMILY">Helvetica,Apple SD Gothic Neo, AppleGothic,sans-serif</translation>
</if>
<if expr="desktop_linux and not chromeos">
- <translation id="IDS_WEB_FONT_FAMILY">NanumGothic,UnDotum,Baekmuk Gulim,sans-serif</translation>
+ <translation id="IDS_WEB_FONT_FAMILY">Noto Sans CJK KR,NanumGothic,UnDotum,Baekmuk Gulim,sans-serif</translation>
</if>
<if expr="chromeos">
<translation id="IDS_WEB_FONT_FAMILY">Noto Sans UI, Noto Sans CJK KR, sans-serif</translation>
diff --git a/ui/strings/translations/app_locale_settings_zh-CN.xtb b/ui/strings/translations/app_locale_settings_zh-CN.xtb
index a3f017c..adedfed 100644
--- a/ui/strings/translations/app_locale_settings_zh-CN.xtb
+++ b/ui/strings/translations/app_locale_settings_zh-CN.xtb
@@ -4,12 +4,15 @@
<translation id="IDS_MINIMUM_UI_FONT_SIZE">10</translation>
<translation id="IDS_UI_FONT_FAMILY_CROS">Noto Sans UI,Noto Sans CJK SC,ui-sans, 13px</translation>
<if expr="is_win">
- <translation id="IDS_WEB_FONT_FAMILY">'Segoe UI',Arial,'Microsoft Yahei',Simsun,sans-serif</translation>
+ <translation id="IDS_WEB_FONT_FAMILY">'Segoe UI',Arial,'Microsoft Yahei',sans-serif</translation>
<translation id="IDS_WEB_FONT_FAMILY_XP">Arial,'Microsoft Yahei',Simsun,sans-serif</translation>
</if>
<if expr="is_macosx or is_ios">
<translation id="IDS_WEB_FONT_FAMILY">Helvetica,STHeiti,sans-serif</translation>
</if>
+<if expr="desktop_linux and not chromeos">
+ <translation id="IDS_WEB_FONT_FAMILY">Noto Sans CJK SC, WenQuanYi Zen Hei, sans-serif</translation>
+</if>
<if expr="chromeos">
<translation id="IDS_WEB_FONT_FAMILY">Noto Sans UI, Noto Sans CJK SC, sans-serif</translation>
</if>
diff --git a/ui/strings/translations/app_locale_settings_zh-TW.xtb b/ui/strings/translations/app_locale_settings_zh-TW.xtb
index 2f81c5b..ae5d40c 100644
--- a/ui/strings/translations/app_locale_settings_zh-TW.xtb
+++ b/ui/strings/translations/app_locale_settings_zh-TW.xtb
@@ -4,12 +4,15 @@
<translation id="IDS_MINIMUM_UI_FONT_SIZE">10</translation>
<translation id="IDS_UI_FONT_FAMILY_CROS">Noto Sans UI,Noto Sans CJK TC,ui-sans, 13px</translation>
<if expr="is_win">
- <translation id="IDS_WEB_FONT_FAMILY">'Segoe UI',Arial,'Microsoft Jhenghei',PMingLiu,sans-serif</translation>
+ <translation id="IDS_WEB_FONT_FAMILY">'Segoe UI',Arial,'Microsoft Jhenghei',sans-serif</translation>
<translation id="IDS_WEB_FONT_FAMILY_XP">Arial,'Microsoft Jhenghei',PMingLiu,sans-serif</translation>
</if>
<if expr="is_macosx or is_ios">
<translation id="IDS_WEB_FONT_FAMILY">Helvetica,Heiti TC,sans-serif</translation>
</if>
+<if expr="desktop_linux and not chromeos">
+ <translation id="IDS_WEB_FONT_FAMILY">Noto Sans CJK SC, WenQuanYi Zen Hei, sans-serif</translation>
+ </if>
<if expr="chromeos and _google_chrome">
<translation id="IDS_WEB_FONT_FAMILY">Noto Sans UI, Noto Sans CJK TC, sans-serif</translation>
</if>