fontcull-1.0.3 is not a library.
Visit the last successful build:
fontcull-2.0.0
fontcull
A Rust port of the parts of glyphhanger I use regularly.
Why?
glyphhanger is amazing, but it's 5+ years old and requires a specific old version of Chrome/Puppeteer that's become painful to maintain. With the help of Claude, I ported the core functionality to Rust.
What it does
- Opens URLs in a headless browser (via chromiumoxide)
- Extracts all glyphs/characters used on the page (including
::before/::afterpseudo-elements) - Optionally spiders the site to find more pages
- Subsets font files to only include the characters actually used
Usage
# Just get the unicode range of characters used
# Subset fonts based on page content
# Spider multiple pages
# Filter by font family
# Add extra characters to always include
Subsetting backends
- klippa (default): Pure Rust subsetting via fontations, woff2 compression via vendored Google woff2
- pyftsubset (
--pyftsubset): Falls back to Python's fonttools (requirespip install fonttools brotli)
Install
Requires Chrome/Chromium installed (uses your system browser, no specific version needed).