w3c / clreq

Requirements for Chinese Text Layout
https://www.w3.org/International/clreq/
Other
729 stars 61 forks source link

No support for Kai and Fangsong generic font families #587

Open xfq opened 11 months ago

xfq commented 11 months ago

This issue is applicable to Chinese.

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:

The GAP

generic(kai) and generic(fangsong) are not supported by any major browser engine.

css-fonts-4 describes generic(kai) and generic(fangsong) in CSS.

Priority

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 author use web fonts, which is often too large). This was therefore marked as Basic.

Tests & results

Interactive test, font-family:generic(kai) will apply a Kai font in Chinese
Interactive test, font-family:generic(fangsong) will apply a Fangsong font in Chinese

Action taken

Issue, The Cursive = Chinese Kaiti equivalent Closed.

Browser bug reports: GeckoBlinkWebKit

Outcomes

tbd

xfq commented 11 months ago

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made by adding comments below this point.

Relevant gap analysis documents include: _Chinese_