-
Notifications
You must be signed in to change notification settings - Fork 468
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
[glyf] Support cubic curves #2988
Conversation
Can be used with this patch to
tested with the With NotoSansArabic-VF, I see 10% size improvement. |
7bf6d66
to
1e26af3
Compare
See #2989 |
d804877
to
36ad9ce
Compare
HarfBuzz counterpart: harfbuzz/harfbuzz#4107 |
8c90285
to
d036ec5
Compare
I've started a spec at: The full implementation handling all corner-cases needs more work (and is quite cumbersome). But I like feedback and whether this can move forward. I like to land the HarfBuzz patch and ship it in HB 7 soon, even if it only handles simple cases. |
2e31f7c
to
919a551
Compare
I'll add. cu2qu.cli can also gain an inverse of all_quadratic when I add the support to ufo.py... |
Done. Can you look into testing it? |
both curves_to_quadratic (with all_quadratic=False) and quadratic_to_curves (with all_cubic=False) return list of tuples of either length three (for quads) or lenght 4 (for cubics).. so the caller (be it a pen or the cu2qu.ufo module which also would like to know if it did actually modify a given curve segment) should be able use the lengths of the returned tuples to determine whether or not the function has actually done anything to the input |
yes |
What should I call that argument? |
--mixed sounds good |
I don't know why test_stats is failing on two bots only. |
Nevermind. They are somehow stuck on old code. No idea why. I already fixed the code. |
Untested.
7281946
to
5c36bd6
Compare
I think this is good to merge now. |
Next step would be ufo2ft / fontmake support... |
basically we just need a way to pass down all_quadratic=False to cu2qu fonts_to_quadratic (to get the mixed quad+cubic curves) |
Correct.. |
harfbuzz/boring-expansion-spec#41