Map generic font family "cursive" to KaiTi in Chinese.
Reported by
bobbyt...@wanderer.tw,
Sep 19 2016
|
||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Example URL:
Steps to reproduce the problem:
1. Open attachment bodymatter_0_5.xhtml
What is the expected behavior?
Content should be displayed with Kaiti.
What went wrong?
Content displayed with sans-serif font.
Does it occur on multiple sites: Yes
Is it a problem with a plugin? No
Did this work before? N/A
Does this work in other browsers? No Edge, Internet Explorer
Chrome version: 53.0.2785.116 Channel: stable
OS Version: OS X 10.12.0
Flash Version: Shockwave Flash 23.0 r0
To improve Chinese text and layout. Besides serif and sans-serif fonts, if cursive could be mapped to "Kaiti(楷體)". It will improve Chinese layout. In OS X El Capitan, Safari already did. And in Firefox Nightly ver.52, it follows Safari's setting to work as intended.
I hope Chrome support this default typesetting as well. Since in Chrome settings you cannot change "cursive" font in languages.
It's ok to work on desktop only, because there's no other fonts on mobile platform.
Here's the Kaiti font list in Trad./Simp. on OSs.
Windows macOS
TC 標楷體(DFKai-SB) 楷體繁(STKaiTi-TC)
SC 楷體(Kaiti) 楷體簡(STKaiTi-SC)
,
Sep 20 2016
,
Oct 6 2016
I'm checking availability of the fonts specified. * I don't find DFKai-SB nor Kaiti on my Windows 10 AU En. Do you know which versions of Windows have these fonts? * I don't find STKaiTi-TC nor STKaiTi-SC on my Mac 10.11.6. I see STKaiti, Kaiti TC, and Kaiti SC. Was that typo? Do you know which versions of MacOS has which fonts?
,
Oct 6 2016
*Windows 10 Yes, I installed version 14393 with Traditional Chinese lang pack. Kaiti's Font name is "KAIU.ttf" now, and font family name is "標楷體". *macOS My fault, STKaiTi-TC / STKaiTi-SC is Postscript name. font family name should be "KaiTi TC" and "KaiTi SC"
,
Oct 24 2016
,
Nov 2 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d commit 0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d Author: kojii <kojii@chromium.org> Date: Wed Nov 02 19:36:33 2016 Update the default generic font family settings for Chinese/Japanese This patch updates the default generic font family settings for Chinese and Japanese. Win Japanese standard/sans-serif Changed to Meiryo if available[1]. It was once Meiryo, but crbug.com/506837 changed to Yu Gothic because Meiryo is not available on non-Japanese versions of Win10. Meiryo is preferred when available because its rendering quality is better than Yu Gothic at this point. Win Japanese serif Changed to Yu Mincho if available[1]. Also added Times New Roman as fallback, since neither Yu Mincho nor MS PMincho are available on non-Japanese versions of Win10. Win Chinese cursive Changed to Kaiti/DFKai-SB (SC/TC.) Mac Chinese standard/sans-serif Changed to PingFang SC/TC if available[1]. These fonts are available since 10.11. Mac Chinese cursive Changed to Kaiti SC/TC. These are fonts available since 10.8/10.9. [1] The first-available-font-list was added in crbug.com/658646 BUG= 579842 , 506837, 592199 , 587072 , 648256 Review-Url: https://codereview.chromium.org/2454583002 Cr-Commit-Position: refs/heads/master@{#429366} [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/locale_settings_mac.grd [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/locale_settings_win.grd [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/platform_locale_settings/locale_settings_mac_zh-CN.xtb [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/platform_locale_settings/locale_settings_mac_zh-TW.xtb [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/platform_locale_settings/locale_settings_win_ja.xtb [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/platform_locale_settings/locale_settings_win_zh-CN.xtb [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/app/resources/platform_locale_settings/locale_settings_win_zh-TW.xtb [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/browser/ui/prefs/prefs_tab_helper.cc [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/common/pref_names.cc [modify] https://crrev.com/0a4a11b1cfe0a7122fb0120672cce84e2bd78c6d/chrome/common/pref_names.h
,
Nov 3 2016
Appreciate your tests when available in Canary.
,
Dec 7 2016
I have tested on Chrome Canary 55. font-family: cursive can be shown as KaiTi. But I assigned langlocale as zh-TW, font mapped to "Kaiti SC" - for Simplified Chinese. Test page can be find on: https://bobbytung.github.io/cursiveaskaifont/allfamilies.html
,
Dec 12 2016
Re-opening as per #8 for further investigation.
,
Dec 12 2016
,
Jan 26 2017
Bobby, sorry for a long delay, I opened https://bobbytung.github.io/cursiveaskaifont/allfamilies.html and the "Cursive" is rendered using "Kaiti TC" for me. Could you please double-check? |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by dtapu...@chromium.org
, Sep 19 2016