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

@svgeesus As mentioned by @faceless2, the intention is to skip loading the font if it doesn't apply. In @AmeliaBR's example with Noto fonts, subsetted, single-language fonts are already offered for use on the web because the full multi-language fonts are large. This somewhat accounts for the use of the BCP 47 language tags rather than OpenType language tags: the `lang` descriptor would be matched with HTML language tag(s) and not font file language tag(s).

@patrickdark I think it's okay if a font contains characters from multiple languages. The author need only specify `lang` in `@font-face` for languages that should be rendered in specific fonts, and then there can be fallback behavior for other languages. It seems to me that using an `exclude-lang` descriptor could get unwieldy. For example, a site about the use of Classical Chinese might use various combinations of the `zh-Hans`, `zh-Hant`, `ja-JP`, `ko-KR`, and `vi-VN` language tags on its pages.

-- 
GitHub Notification of comment by kahsieh
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1744#issuecomment-363869690 using your GitHub account

Received on Wednesday, 7 February 2018 18:47:11 UTC