Skip to content

hellboxpy/hellbox-subset

Repository files navigation

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

About

Font subsetting job for hellbox

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages