A hellbox job that wraps executables from AFDKO.
Import the chutes you need from hellbox.jobs.afdko:
from hellbox.jobs.afdko import MakeOTF, Otf2Ttf, TtfComponentizerfrom hellbox import Hellbox
from hellbox.jobs.afdko import MakeOTF
with Hellbox("build") as task:
task.read("sources/*.ufo") >> MakeOTF() >> task.write("fonts/")MakeOTF accepts the following options, all False by default:
| Option | AFDKO flag | Description |
|---|---|---|
release |
-r |
Enable release mode |
filter_glyphs |
-gs |
Filter glyphs to those in the GSUB/GPOS tables |
omit_mac_names |
-omitMacNames |
Omit Macintosh name table entries |
from hellbox import Hellbox
from hellbox.jobs.afdko import MakeOTF, Otf2Ttf
with Hellbox("build") as task:
task.read("sources/*.ufo") >> MakeOTF() >> Otf2Ttf() >> task.write("fonts/")TtfComponentizer requires the source UFO to be adjacent to the TTF. hellbox-afdko
handles this automatically by symlinking the UFO into the temporary working directory.
from hellbox import Hellbox
from hellbox.jobs.afdko import MakeOTF, Otf2Ttf, TtfComponentizer
with Hellbox("build") as task:
task.read("sources/*.ufo") \
>> MakeOTF() \
>> Otf2Ttf() \
>> TtfComponentizer() \
>> task.write("fonts/")hell add hellbox-afdkouv sync
uv run pytest