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

Thanks, @litherum.  I thought that the existing descriptors in @font-face such as font-weight are for matching/finding fonts, rather than modifying them.  Could easily be that i'm wrong?  I would have expected to see something similar to `font-size-override`, let's call it `font-weight-override` to actually apply modifications to the incoming font. (So you might have both `font-weight` and `font-weight-override` in the list of descriptors.)

The value for `font-weight-override` would presumably be a numeric offset, such as +100, or -200, or so on?  Or maybe (?) something like `bolder`, which i think is currently not allowed for @font-face descriptors.

With that arrangement i think you wouldn't need to add stuff to the local() argument, which i think is cleaner - you'd just have the font name, as usual.  In addition, it seems odd to modify the font weight in local("windowsfontname-500weight") but to modify the font size in font-size-override.

does that make sense?

So i guess i was expecting something like this:
````
@font-face {
    font-family: 'harmonisedMacfontname';
    src: local("macfontname");
    font-weight: 300;
    font-size-override: 100%;
    font-weight-override: +100 /* not necessarily needed, but could perhaps be useful */
}

@font-face {
    font-family: 'harmonisedWindowsfontname';
    src: local("windowsfontname"); 
    font-weight: 300;
    font-size-override: 112.5%;
    font-weight-override: -100;  /* of course, only needed if the font comparison merits it */
}

...

p {
 font: 300 16px 'macfontname', 'windowsfontname', sans-serif;
}
````

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


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

Received on Friday, 12 February 2021 17:41:44 UTC