[csswg-drafts] [css-fonts] Propose adding lang as a font-face descriptor

kahsieh has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts] Propose adding lang as a font-face descriptor ==
See https://drafts.csswg.org/css-fonts-3/#at-font-face-rule

Per the discussion in #1736, we note that generic fonts typically map to more than one system font with `lang` affecting the resultant font. Adding `lang` as a `@font-face` descriptor might be useful for similar reasons, for example with CJK:

- CJK have partially intersecting character sets, so `unicode-range` alone cannot specify fonts for each language. This can be an issue on pages containing text in more than one `lang`.
- Even if a single font (or `@font-face`) contains faces for all the characters in some text, that font may not be for the correct `lang` everywhere. (A single codepoint can map to different variant glyphs depending on `lang`, and this is reflected in fonts.)

This addition would allow fonts to resolve `lang`-appropriately when a font family specified with `@font-face` is applied to a page with multiple `lang`s.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1744 using your GitHub account

Received on Saturday, 19 August 2017 23:25:29 UTC