-
Notifications
You must be signed in to change notification settings - Fork 94
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
Chain autohinting parameters from Glyphs source to fontmake #850
Chain autohinting parameters from Glyphs source to fontmake #850
Conversation
I would insist, if you guys don't mind :) |
to make the test run on the CI, you would have to first install ttfautohint. The easiest would be to use homebrew on the mac CI runner. |
Please advise on how to do this. I don't get the CI setup here. |
i'm working on hooking up fontmake to ttfautohint-py, after which it'll be easier to pip install ttfautohint-py like a regular python module |
I added a test. Please review it. I'm now quietly assuming that TTFAutohint is installed via brew. |
Of course it fails now. Waiting for further instructions |
After #851 is merged on main, you should be able to merge main into your PR branch (or rebase on main) and your test should just work |
At the expense of exposing my ignorance, I can't get this to run. Neither of your proposed commands do anything in my fork, be it main branch or the PR's branch. I'm not good with working with branches. I normally update my fork with |
yes, that's what I mean |
So that line with the lib key is too long for flake8, which is why I originally broke it. |
Add |
And the pypy test fails (to install ttfautohint-py): https://github.com/googlefonts/fontmake/runs/4982698831?check_suite_focus=true#step:5:510 |
pls ignore that for now, I'll investigate and fix that separately. The PR looks good to me, I'll merge and take over from here. Thank you! |
Thanks |
one last thing, actually. That test .glyphs file you added, what's its license? If you don't add any special license file for it, it'll automatically get the license of the rest of the codebase. Also, it's quite big and long, can you make a subset that contains only a couple glyphs? We don't need the full font just to exercise the ttfautohint code path. |
It's OFL, so I didn't care. I already subsetted it to just the basic Latin A-Z and a-z. First I had just the A in it, but ttfautohint required a bunch of different characters to take measurements from, so I re-added the basics. I would have to dive into ttfautohint to make the minimum subset. |
I filed fonttools/ttfautohint-py#11 for ttfautohint-py failing on pypy3. I'll just skip the test on pypy for now. |
I wouldn't know how to write a test for this, so unless you insist, I'm skipping