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

The CSS Working Group just discussed `Adding lang as a font-face descriptor`.

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> Topic: Adding lang as a font-face descriptor<br>
&lt;emilio> Github: https://github.com/w3c/csswg-drafts/issues/1744<br>
&lt;emilio> myles_: This issue is about the desire of making a font only used by elements that are on a particular language<br>
&lt;emilio> myles_: So that each element with a particular language gets the right font attached to it<br>
&lt;emilio> myles_: My particular feeling is that this is the latest step in a long sequence of changes to add more styling capabilities to elements<br>
&lt;emilio> myles_: selectors already do that, in font-face we already have a bunch of other descriptor, and this moves into the model of adding more styling to font-face<br>
&lt;emilio> myles_: I don't want to implement all of CSS in @font-face, there are examples on the issue on how to do it using style rules<br>
&lt;addison> q+<br>
&lt;astearns> ack addison<br>
&lt;gregwhitworth> +1 to myles_<br>
&lt;emilio> addison: If you were to put this in there's a bunch of interesting problems you need to specify, like how the lang tags match and stuff<br>
&lt;emilio> addison: ???<br>
&lt;emilio> addison: If you name a language for a font-face, you don't render it anywhere else? How do you enforce that?<br>
&lt;emilio> emilio: Isn't there a `:lang` selector you could use for that?<br>
&lt;emilio> drott: that's the example of the issue, yeah<br>
&lt;myles_> s/add more styling capabilities to elements/add more styling capabilities to @font-face/<br>
&lt;emilio> drott: I share myles_' concerns and conflicting semantics between `:lang` an this<br>
&lt;emilio> drott: I think the intent is using the font in a more finegrained way than unicode-range and such, and I think the example also covers this, you can use css variables to use it as the same font, but not sure if I missed any part of the use case<br>
&lt;emilio> addison: I think the idea is to affect how font-fallback works.<br>
&lt;emilio> addison: that's pretty common for CJK<br>
&lt;emilio> myles_: we already have facilities to do this with CSS<br>
&lt;emilio> astearns: looks like preference is to use existing mechanisms for that, and not use descriptors, we should put the minutes in the issue and let people comment<br>
&lt;emilio> florian: does a note / suggestion in the spec about how to solve this problem seem useful?<br>
&lt;emilio> astearns: we should probably wait for more info from the proposers here<br>
&lt;r12a> q+<br>
&lt;astearns> ack r12a<br>
&lt;emilio> r12a: While seeking further info, one thing to ask is how would you treat with multiple languages as a single language<br>
&lt;emilio> astearns: can that be handled by selectors?<br>
&lt;emilio> nods<br>
</details>


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

Received on Tuesday, 23 October 2018 09:24:19 UTC