googlefonts / fontra

A browser-based font editor
https://fontra.xyz
GNU General Public License v3.0
478 stars 21 forks source link

Extrapolation (via MutatorMath)? #418

Open davelab6 opened 1 year ago

davelab6 commented 1 year ago

I seem to recall that robocjk could switch interpolation engine between varlib and MutatorMath, with the latter offering the ability to extrapolate. I can see that being useful still.

What's the best way to offer extrapolation?

Cc @punchcutter

anthrotype commented 1 year ago

MutatorMath is no longer supported I believe. On the other hand, I think fontTools.varLib should now support extrapolation. See https://github.com/fonttools/fonttools/issues/1252 & https://github.com/fonttools/fonttools/pull/2757

punchcutter commented 1 year ago

I mentioned this in https://github.com/googlefonts/fontra/discussions/306

justvanrossum commented 1 year ago

I would like to support extrapolation in Fontra. varLib recently got some (optional) support for that, which I'd like to port over to Fontra. I have some ideas regarding how this could further work in the UI, but it needs some experimentation.

FWIW: RoboCJK switched to use varLib exclusively quite a while back.

davelab6 commented 1 year ago

@punchcutter aha, thanks! I didn't look in discussions