Re: [csswg-drafts] [css-fonts] Specifying changes to parameters for fallback fonts (#126)

I think you might need commas for that syntax - I thought "good idea, nice and obvious" then realised I'd assigned 400 to Helvetica, not 500. Maybe more like:

`font-weight: 400, "Helvetica" "Arial" 500, "Times" 300;`

I'm also wondering about some of these
* `letter-spacing` as specified (although not necessarily as implemented) applies to the gap between two glyphs, so I'm not sure what the spacing would be between "5〜6" if the fonts used for digits and the 〜 were different, and had different letter-spacing settings.
* `word-spacing` is applied to the space character. For any given set of font-families, the space character will always be taken from exactly one of those fonts. So I don't see what a list of alternatives for `word-spacing` offers. Yes, it also applies to ethiopic and aegean etc. spaces, but catering for a mix of space characters in this way feels a bit... niche.
* `line-height` and `font-size` impact on layout, not just on rendering. I think they should be considered separately. I'm not too sure about either of these, especially given we've already got `font-size-adjust` which does the same thing and is already understood and implemented. I would considered extending that property first - if there's a need, maybe adding a syntax like `font-size-adjust: +20%`, to adjust _by_ a value rather than _to_ a value, as we do now.
 
Otherwise this idea works for me, whatever that's worth.

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


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

Received on Thursday, 21 January 2021 09:08:53 UTC