Re: [csswg-drafts] [css-fonts] Allow UA to not download font hints if it would have ignored them (#3926)

This seems to me like a logical extension of the [`format(<format> supports <features>)`](https://drafts.csswg.org/css-fonts-4/#font-face-src-requirement-types) specifier.  As currently defined, the `supports` specifier allows authors to limit font downloads to user agents that support opentype features, color fonts, or variable fonts (see #633 and #2540).

We could define a `hints` feature, with sub-features for different types of hinting. Then, you could have one source file restricted to browsers that support the relevant type of hinting, and the simplified font file for other user agents:

```css
@font-face {
  font-family: MyWebFont;
  src: url("font-full.otf") format(opentype supports hints(truetype)),
     url("font-no-hints.otf") format(opentype);
}
```




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

Received on Monday, 13 May 2019 16:05:07 UTC