| Crates.io | font-convert |
| lib.rs | font-convert |
| version | 0.1.0 |
| created_at | 2026-01-02 11:48:18.189217+00 |
| updated_at | 2026-01-02 11:48:18.189217+00 |
| description | Pure-Rust font converter and subsetter for TTF/OTF/WOFF/WOFF2, optimized for web embedding |
| homepage | |
| repository | https://github.com/olatunbosunoyeleke94/font-convert |
| max_upload_size | |
| id | 2018422 |
| size | 614,826 |
A fast, pure-Rust font subsetter for web embedding.
Converts TTF/OTF/WOFF/WOFF2 → tiny WOFF2 (or WOFF/TTF) containing only the characters you need.
Perfect for static sites, build scripts, and reducing web font payload.
cargo install font-convert
font-convert \
--input NotoSans-Regular.ttf \
--text "Hello World! café 🦀 All your site text here" \
--output my-site.woff2
Result: my-site.woff2 (~tiny KB), ready for @font-face.
@font-face {
font-family: 'MySite';
src: url('my-site.woff2') format('woff2');
font-display: swap;
}
body { font-family: 'MySite', sans-serif; }