Re: [csswg-drafts] [css-fonts-5] Details of `format()` and `technology()` values (#6864)

> IIRC there are old versions of WebKit on macOS that support "variations-truetype" but not "variations-cff2." However, those old versions wouldn't be getting updates any more - so nothing we resolve on here will affect them.

While that may make this somewhat irrelevant for what Apple ships in Safari (and equivalently for Edge on Windows), I'm not sure it holds more generally. Gecko relies on the host OS font system -- Core Text on macOS, DirectWrite on Windows -- and therefore the capabilities that are supported depend not only on the version of Gecko (which may be updated, e.g. to recognize the `tech(...)` function) but also what OS version it is running on (which may be older, and lack support e.g. for CFF2 variations).

My understanding is that both macOS and Windows shipped support for TrueType variations in earlier releases than CFF2; indeed, I notice that https://github.com/adobe-fonts/source-han-serif/releases/tag/2.000R, for example, warns users that 

> Currently Windows 10 and Windows 11 do not support CFF2 variable fonts. Please use the TTF variable instead.

(My own experience suggests that there *is* some CFF2 support in Windows, but that it is somewhat unreliable, so that a browser running on Win10 and using DirectWrite to render -- as Firefox does -- might want to treat `variations-cff2` as unsupported in order to fall back to a `variations-truetype` resource. I'm not sure offhand which macOS version first included Core Text support for CFF2 variations?)

>  all the incremental delivery technologies can work with all formats.

Is that really the case? https://w3c.github.io/IFT/Overview.html#declaring-fonts says that "An incrementally transferred font must be in a raw format such as truetype or opentype", which I understood to exclude compressed packages like WOFF/WOFF2. I find it difficult to imagine how either range-request or binary patching could usefully work with a compressed packaging like WOFF2.

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


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

Received on Thursday, 9 December 2021 11:07:01 UTC