Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 757 Bytes

File metadata and controls

40 lines (27 loc) · 757 Bytes

hellbox-instancer

A hellbox plugin that generates static instances from variable fonts using fonttools.

Usage

Pin one or more axes by passing axis tags as keyword arguments:

from hellbox import Hellbox
from hellbox.jobs.instancer import Instance

with Hellbox("instance") as task:
    task.read("build/*.ttf") >> Instance(wght=700) >> task.write("instances")

Restrict an axis to a range rather than pinning it by passing a tuple:

Instance(wght=(300, 700))

Multiple axes can be combined:

Instance(wght=700, wdth=100)

Installation

hell add hellbox-instancer

Development

uv sync
uv run pytest