-
Notifications
You must be signed in to change notification settings - Fork 43
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
Consider (optionally) using tx instead of compreffor #372
Comments
Yes, i'd like to do that. Though it uses subprocess, it does the job. If Khaled fancies making a proper wrapper, then great. Otherwise we can just use that one for now. |
If past experiences with other AFDKO C code is an indication, I’d not fancy doing this at all. The code might not be prepared for being used as a library (global state, etc.) and it would break in hard to debug ways if used as such. |
@cjchapman @miguelsousa @josh-hadley Would you be interested in hosting this separate repository https://github.com/anthrotype/afdko-tx-python for packaging up tx as a python subprocess in the adobe-type-tools github organization? I woudn't want fontmake to depend on the entire The name WDYT? |
I discussed this a little bit with @cjchapman, who has previously isolated and ported the |
|
Thank you guys. It would be nice to have that standalone subroutinizer (I like What we need is essnentially this May I suggest we do this:
This way we could have this tool ready immediately, by using |
@cjchapman @josh-hadley @miguelsousa so WDYT of my proposal above? |
@anthrotype : we have set up https://github.com/adobe-type-tools/cffsubr, ready to populate with your current work and proceed. |
thanks @josh-hadley! i'll do that soon |
Ok, I populated the repo with the content from the old afdko_tx and renamed the module |
initial version of cffsubr is now on PyPI, it should be enough to start experimenting with integrating it with ufo2ft. |
In case somebody is interested in testing out the standalone cffsubr, this now has a functional CLI tool |
Thanks @anthrotype, works like a charm! |
It would be nice if it made possible to use
tx
for subroutinization instead of compreffor as the later seems to be much much slower:Also tx is making a slightly smaller CFF table (436882 bytes vs 479646 from compreffor).
Although tx is command line tool and not a Python module, I think the gain would be worse the effort to wrap it.
The text was updated successfully, but these errors were encountered: