W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

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

From: Mike Bremford via GitHub <sysbot+gh@w3.org>
Date: Thu, 21 Jan 2021 09:08:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-764491229-1611220129-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC