Re: [csswg-drafts] [meta] [css-fonts] Criteria for generic font families (#4910)

The CSS Working Group just discussed `generic font families`.

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> Topic: generic font families<br>
&lt;r12a> Writing systems around the world use a wide variety of alternative writing styles. These writing styles may support functional differences between text, or may have cultural relevance, in addition to aesthetic concerns.<br>
&lt;r12a> The inability to control what style of font is delivered during fallback can be problematic to international users.  A Thai user may not want text to fall back to a looped style if an alternative non-looped font is available.  A Kashmiri or Urdu user will certainly want content to fall back to a nastaliq font, if one is available, rather than one of the naskh fonts they are likely to have on their system.  And so on.<br>
&lt;r12a> The current set of categories for generic font fallbacks are modelled on a Western world-view, and don't map onto the needs of international users. Trying to stuff the needs of other writing systems into the current Western categories is not really feasible, not to mention that it potentially creates confusion for would-be users.<br>
&lt;r12a> Browsers should allow users to define their own generic fallback fonts for writing-system relevant categories.  An attempt may be may to enumerate those categories in a registry, or users may be allowed to define them for themselves.  However, apart from some defaults, the browser shouldn't attempt to restrict which fonts apply to which category – users should be able to match fonts to categories.  The mechanism involved could be very simila<br>
&lt;r12a> r to, or perhaps even just an extension of, existing mechanisms for defining font preferences in browsers for proportional, serif, sans-serif, and monospaced fonts.<br>
&lt;xfq> GitHub: https://github.com/w3c/csswg-drafts/issues/4910<br>
&lt;astearns> zakim, open queue<br>
&lt;Zakim> ok, astearns, the speaker queue is open<br>
&lt;myles> q+<br>
&lt;chris> q+<br>
&lt;astearns> ack myles<br>
&lt;TabAtkins> q+ astearns<br>
&lt;TabAtkins> myles: I hadn't seen this before, interesting<br>
&lt;TabAtkins> myles: You mentioned a user-created generic font family<br>
&lt;TabAtkins> myles: Are you describing that a user could make a font-family named "myles" and a website coudl use it?<br>
&lt;TabAtkins> myles: Or that the generic families are still defined in CSS, but users control what fonts map to the family<br>
&lt;Peter> q+<br>
&lt;TabAtkins> r12a: Yes, one of those. More details need to be worked thru.<br>
&lt;TabAtkins> r12a: Discussion about english-specific details of the existing generic fonts<br>
&lt;TabAtkins> r12a: But having a registry could be slower, but would give us control over what's available<br>
&lt;TabAtkins> r12a: There's lots of different styles for non-latin scripts<br>
&lt;astearns> ack chris<br>
&lt;TabAtkins> r12a: But the main thing is I want a mechanism where a user can control which fonts belong to which category<br>
&lt;TabAtkins> chris: So there's two ways we can do it with generics<br>
&lt;r12a> q+<br>
&lt;TabAtkins> chris: One way is, we had five originally, two are stupid we can drop them, and we dont' add more. If you want fonts use a webfont. Workable, but not everyone will have fonts.<br>
&lt;TabAtkins> chris: The other way is to have a whole bunch of categories which don't map to anything for many scripts<br>
&lt;florian> q+<br>
&lt;TabAtkins> chris: So the issue is a clash with existing terms - if we add a "myles" generic, need to figure out how that interacts with webfonts named "myles"<br>
&lt;TabAtkins> chris: I think the "thousand flowers" approach is where to go, we just need to be clear about it<br>
&lt;TabAtkins> astearns: I'm a little concerned about this user-definitions scheme, that we'll put a lot of burden on users of a particular language<br>
&lt;chris> qq+<br>
&lt;TabAtkins> astearns: Yes, perhaps there's a registry entry for nastaliq, but if it's user-defined then every user has to fiddle with settings to create a nastaliq entry and associate a font<br>
&lt;TabAtkins> astearns: I think if we do a registry there should be a way to graduate it to "official" where it's supproted by default in browsers<br>
&lt;astearns> ack chris<br>
&lt;Zakim> chris, you wanted to react to chris<br>
&lt;astearns> ack astearns<br>
&lt;myles> +1 to what Peter is saying<br>
&lt;TabAtkins> Peter: Having the user have thea bility to create a generic family doens't seem that useful - how does the author know what the users are exposing?<br>
&lt;TabAtkins> Peter: Having the user be able to associate fonts with a generic family does help with another issue on the list<br>
&lt;TabAtkins> Peter: Relatively small communities get a preferred font on their system<br>
&lt;TabAtkins> Peter: And if it's something the browser uses but doesn't expose tot he content, that addresses the privacy/fingerprinting concerns<br>
&lt;astearns> ack Peter<br>
&lt;TabAtkins> Peter: If we have a thousand generic families, that seems like a mess<br>
&lt;TabAtkins> Peter: Even in western-centric families, they quickly fail<br>
&lt;TabAtkins> Peter: Type doesn't fit nicely into categories<br>
&lt;TabAtkins> Peter: So you ahve an issue - what does the author consider a 'fantasy' font vs the end-user, and are they agreeing?<br>
&lt;chris> fantasy should be deprecated honestly<br>
&lt;astearns> namespace problems could be solved by using functional notation: generic-font(myles)<br>
&lt;myles> q+<br>
&lt;TabAtkins> Peter: If the user goes to a site do they expect their font to be used on a given author's site?<br>
&lt;astearns> zakim, close queue<br>
&lt;Zakim> ok, astearns, the speaker queue is closed<br>
&lt;TabAtkins> r12a: I think content authors could choose a font, and the problem is what if it's not availalbe on the user's system<br>
&lt;TabAtkins> r12a: Like for nastaliq, Urdu speakers really don't want a nasq (sp?) font, they always want nastaliq<br>
&lt;TabAtkins> r12a: So I think those users need a way to define what happens when a particular writing style is used<br>
&lt;astearns> ack r12a<br>
&lt;astearns> ack fl<br>
&lt;TabAtkins> florian: I think a few of the problems aren't taht bad<br>
&lt;xfq> s/nasq (sp?)/naskh/<br>
&lt;TabAtkins> florian: If the list is populated by users it would be confusing - extensions could potentially expand for them<br>
&lt;TabAtkins> florian: If we have a bunch of UA information - a browser on Mac knows what fonts the system ships with, they cna prepopulate<br>
&lt;TabAtkins> florian: But for the registry, we can graduate to official only if at least one browser wants to ship with a default assignment<br>
&lt;TabAtkins> florian: So then authors have a list of known groups, and users/UAs can add more<br>
&lt;TabAtkins> florian: So yes, there are many, but only supported ones hit the registry<br>
&lt;TabAtkins> florian: For the name clash, we can just namespace into a function if we need to<br>
&lt;chris> yes, I like the idea of a generic() function<br>
&lt;astearns> ack myles<br>
&lt;TabAtkins> myles: This is a meta-issue that's been going on for over a year, lots of comments and participants<br>
&lt;TabAtkins> myles: Often when CSSWG discusses meta-issues there are opinions bu tnot much issues<br>
&lt;r12a> q+<br>
&lt;TabAtkins> myles: Maybe we want to say "no policy, but we'll discuss individual requests as they come" and close the issue?<br>
&lt;TabAtkins> r12a: That's sort of avoiding the problem<br>
&lt;TabAtkins> r12a: We think users need a solution<br>
&lt;TabAtkins> myles: I'm not saying we wouldn't have new changes, I'm saying we could discuss those for specific proposals rather than having an overarching principle<br>
&lt;TabAtkins> astearns: This issue isa bout the principle, and was started in part to *shut down* dicussino of new generics<br>
&lt;TabAtkins> astearns: Think it makes sense to have an issue about how to have new generics<br>
&lt;chris> r12a should put an I18n-needs-resolution label on 4910 in that case<br>
&lt;TabAtkins> fantasai: I dont' think it's a good idea to have user-defined generics, makes more sense to ahve them in the spec<br>
&lt;TabAtkins> fantasai: Need to be more open to ahving generics because there are a lot more necessary<br>
&lt;TabAtkins> fantasai: richard brought up a point about users wanting a certain style of font over another<br>
&lt;astearns> I think the idea of having user tweaking of UA-defined generics is really interesting<br>
&lt;TabAtkins> fantasai: That shoudl be handled in user settings by setting the generics to the appropriate style<br>
&lt;TabAtkins> fantasai: That doesn't need a new generic<br>
&lt;TabAtkins> fantasai: When it is needed is when a variant conveys meaning<br>
&lt;TabAtkins> fantasai: Like in english using italics for emphasis. Those are shifts in the family but it's not really a different shape.<br>
&lt;TabAtkins> fantasai: [missed]<br>
&lt;TabAtkins> fantasai: Those kidns of things describe a shift<br>
&lt;TabAtkins> fantasai: When those aren't bold or italics but rather a style of font we need to make sure the fonts have that style<br>
&lt;TabAtkins> fantasai: So we need generics for those cases at a minimum<br>
&lt;TabAtkins> fantasai: Maybe for more reasons, like our recent 'rounded', which can be done case-by-case<br>
&lt;TabAtkins> fantasai: But we need to be more open to generics that only have meaning for some scripts<br>
&lt;r12a> international users use specific font categories of font to change the font style where we might use bold or italic in English<br>
&lt;TabAtkins> fantasai: While trying to have them be as broad of a range as possible<br>
&lt;TabAtkins> astearns: Out of time, but I think it woudl be good to have a new separate issue about how to introduce new generic fonts families syntactically<br>
&lt;chris> I volunteer to raise the new issue on adding generics<br>
&lt;TabAtkins> astearns: Not this meta issue about whether to do it at all<br>
&lt;TabAtkins> astearns: We didn't get to the user-installed fonts issues<br>
&lt;TabAtkins> astearns: But we have a longer-form meeting scheduled next week<br>
&lt;chris> yay!<br>
&lt;TabAtkins> astearns: We could invite you at a scheduled time block<br>
&lt;TabAtkins> astearns: I'll contact you about that<br>
</details>


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 27 October 2021 17:04:42 UTC