[Webkit-unassigned] [Bug 177039] [FreeType] Font variations not working for some fonts declared with CSS @font-face

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 2 07:22:03 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=177039

--- Comment #5 from michael at hostbend.net ---
(In reply to Adrian Perez from comment #4)
> (In reply to michael from comment #3)
> > Check out https://tobiasbernard.com/ and https://hostbend.com with
> > WebKitGTK, you'll see that it works for whatever font gets picked before
> > Inter is downloaded. Then when the fonts swap during page load, everything
> > gets de-bolded.
> 
> Right, I can confirm that the issue happens here as well, using both
> a recent build from “trunk” and 2.30.2, thanks for pointing this out!
> 
> Let's reopen the bug and repurpose it for the particular case. It should
> not be hard to try if this happens only for WOFF2 fonts, or whether it is
> a more general problem for any @font-face declaration that is using the
> the names of registered axes.
> 
> For the record, according to MDN [1] one should use “woff2-variations”
> instead of “woff2” as the format for variable fonts. This is missing
> from the CSS served by the tobiasbernard.com site; I tried applying the
> change locally but the issue persists.
> 
> 
> [1]
> https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/
> Variable_Fonts_Guide

Awesome! I own the https://hostbend.com website and have updated it to use a different declaration for now, but I would like to get this fixed for future projects. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201102/270d6411/attachment.htm>


More information about the webkit-unassigned mailing list