Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 645 Bytes

File metadata and controls

32 lines (22 loc) · 645 Bytes

hellbox-subset

A hellbox plugin that subsets fonts by unicode range or glyph name using fonttools.

Usage

from hellbox import Hellbox
from hellbox.jobs.subset import Subset

with Hellbox("subset") as task:
    task.read("build/*.ttf") >> Subset("U+0000-U+007F", "U+00A0-U+00FF") >> task.write("subset")

Glyph names can be specified alongside or instead of unicode ranges:

Subset("U+0000-U+007F", glyphs=["space", "nbspace"])

Installation

hell add hellbox-subset

Development

uv sync
uv run pytest