-
Notifications
You must be signed in to change notification settings - Fork 475
[varLib.interpolatable] Does not correctly handle discrete axes #3597
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
Comments
It hasn't been on my radar. Let me think about it. I think it can be done without splitting the designspace. Right now I collect all masters, and for each one, pick a closest master to compare with. I just need to have multiple groups of masters. |
If you don't mind sending me a reproducer, I can work on it right away. You can email me. Thanks. |
@behdad I don't have your email address, here it is attached. It's just a simple 2-axis set up, with one axis discrete. |
Thanks. first.last@gmail works... |
Thanks. This should fix it: #3599 |
@behdad Thanks so much! |
Hi @behdad @anthrotype,
I love the
varLib.interpolatable
tool, and I would love to use it on a designspace with a discrete axis. But, when I try to run one through, it gives the following error:Larger context:
fonttools/Lib/fontTools/varLib/interpolatable.py
Lines 710 to 723 in ba20aa2
I suppose it should split up the designspace into its subspaces, (probably using
designspaceLib.split.splitInterpolatable
) and then run the interpolatable tests on each subspace, though I can see this being a can of worms.I can attempt a PR to enable discrete axes with
interpolatable
, but I wanted to check first with the both of you to see that something wasn't already in progress, or if you had any suggestions to start.Thanks!
The text was updated successfully, but these errors were encountered: