W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Sat, 01 Dec 2018 00:21:58 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-443379409-1543623717-sysbot+gh@w3.org>
For cases where language variants are within a font file, CSS already requires looking up the correct variant using the element's content language. In cases where the font should switch, the :lang() selector can do this already:

[lang]:lang(a) { font-family: Font For Language A, fallback for A, etc; }
[lang]:lang(b) { font-family: Font For Language B, fallback for B, etc; }

The CSSWG believes this should be an adequate solution, so the suggestion is to close this issue as wontfix. Let us know if there's anything we missed and should reconsider.

GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1744#issuecomment-443379409 using your GitHub account
Received on Saturday, 1 December 2018 00:21:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC