New issue
Advanced search Search tips

Issue 648256 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug

Blocked on:
issue 658646



Sign in to add a comment

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)
 
bodymatter_0_5.xhtml
13.2 KB View Download
Components: -Blink Blink>Fonts

Comment 2 by e...@chromium.org, Sep 20 2016

Owner: kojii@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by kojii@chromium.org, Oct 6 2016

Labels: OS-Windows
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?
*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"

Comment 5 by kojii@chromium.org, Oct 24 2016

Blockedon: 658646
Project Member

Comment 6 by bugdroid1@chromium.org, 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

Comment 7 by kojii@chromium.org, Nov 3 2016

Status: Fixed (was: Assigned)
Appreciate your tests when available in Canary.
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

Comment 9 by kojii@chromium.org, Dec 12 2016

Status: Assigned (was: Fixed)
Re-opening as per #8 for further investigation.

Comment 10 by kojii@chromium.org, Dec 12 2016

Status: Available (was: Assigned)

Comment 11 by kojii@chromium.org, Jan 26 2017

Status: Fixed (was: Available)
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