[Webkit-unassigned] [Bug 265926] New: No support for Kai and Fangsong generic font families
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 5 21:12:41 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=265926
Bug ID: 265926
Summary: No support for Kai and Fangsong generic font families
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: xfq.free at gmail.com
CC: mmaxfield at apple.com
There are many font styles used in Chinese composition, but Song, Kai, Hei, and Fangsong are the most important ones.
The `font-family` CSS property should support generic family names for these font styles.
More: https://www.w3.org/TR/clreq/#four_commonly_used_typefaces_for_chinese_composition
`generic(kai)` and `generic(fangsong)` are not supported by WebKit.
css-fonts-4 describes `generic(kai)` and `generic(fangsong)` in CSS: https://drafts.csswg.org/css-fonts-4/#generic-font-families
The Kai and Fangsong generic font families significantly improves the fallback mechanism of Chinese websites and web applications. If the browsers does not support them, the differences expressed by the font styles won't appear (unless the developer use web fonts, which is often too large).
### Tests & results
Interactive test, [font-family:generic(kai) will apply a Kai font in Chinese](https://github.com/w3c/character_phrase_tests/issues/62)
Interactive test, [font-family:generic(fangsong) will apply a Fangsong font in Chinese](https://github.com/w3c/character_phrase_tests/issues/25)
### CSS issue
https://github.com/w3c/csswg-drafts/issues/4606 (closed)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231206/a18e16d3/attachment-0001.htm>
More information about the webkit-unassigned
mailing list