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

@r12a

> @litherum could you, or somebody, give an example of what the syntax may look like (approximately/grosso modo) if one wants to resolve, say, the Mongolian issue i described above?

Given your example:

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

It would look something like this:

```
@font-face {
    font-family: 'macfontname';
    font-weight: 300;
    font-size-override: 100%;
    src: local("macfontname-300weight");
}

@font-face {
    font-family: 'windowsfontname';
    font-weight: 300; /* this is intentionally *not* "500" */
    font-size-override: 112.5%;
    src: local("windowsfontname-500weight"); /* *this* is where you specify you want weight 500 to be rendered */
}

...

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


-- 
GitHub Notification of comment by litherum
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/126#issuecomment-778325984 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:17:54 UTC