-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colr_to_svg: Support Format 5 (PaintVarLinearGradient) #426
Comments
format 5 is For the same reason, a variable COLRv1 font like FoldIt doesn't work on latest stable Chrome. But it should work on Chrome Canary if you enable the experimental flag chrome://flags/#variable-colrv1 |
Thanks Cosimo! So running maximum_color won't work on colr v1 fonts which are variable? if that's the case, we'll need to amend our FB check so it skips VFs. |
won't work on COLRv1 fonts that are variable in the COLR table itself. Nabla, for example, only varies in the outlines (gvar) but the COLR is static |
Understood. @felipesanches your latest fontbakery check fonttools/fontbakery#3887 doesn't take this issue into consideration. |
but even in the case of a variable COLRv0 (CairoPlay) or COLRv1 with variable outlines but static COLR table (Nabla), running maximum_color will only add a non-variable SVG table (because SVG can't do OT variations). So you'll only see the default outlines in there. I believe (I hope) we currently subset away all the variation data when we serve these fonts to browsers that only understand OT-SVG but not COLR /cc @rsheeter |
one thing maximum_color could do is, when it finds |
+1 to treat them as their static counterpart; it's not perfect but it's far more likely to be useful than kerploding.
We do not. The default request for a family is for a static instance, but if you ask for variation to be included we'll merrily do it. |
Just tried running the maximum_color tool on Foldit and got the following traceback:
I wouldn't mind digging into this deeper since it'll probably improve my colr table knowldge which is very lacking atm.
btw, Foldit doesn't work in the latest Chrome yet (probably due to unsupported formats) but we'll make a pr and block it for the time being.
The text was updated successfully, but these errors were encountered: