fonttools / ttfautohint-py

Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts
https://www.freetype.org/ttfautohint/
MIT License
30 stars 7 forks source link

Can this be used in the shell? #20

Closed arrowtype closed 2 years ago

arrowtype commented 2 years ago

Sorry if this is a stupid question, but can this be used on the shell?

My expectation was that I could pip install this, and then the command ttfautohint would work. I don’t see any such command in venv/bin, however, and just trying it out results in command not found: ttfautohint.

For now, I’ll make a Python script to run this, and call that from the shell, but is there a simpler way?

Thanks!

arrowtype commented 2 years ago

Ah, nevermind – it can be used like this:

python3 -m ttfautohint [in-font] [out-font]
anthrotype commented 2 years ago

Correct We did that to avoid shadowing an existing ttfautohint binary, and make it explicit that one is calling ttfautohint via python