WOFF2
$ woff2_compress Official Low RiskGoogle's reference woff2 utilities (woff2_compress, woff2_decompress, woff2_info) convert TrueType/OpenType fonts to and from Brotli-compressed WOFF 2.0 web fonts. The binaries take a bare file path with minimal CLI flags and automatically write the sibling .woff2 or .ttf file in the same directory.
brew install woff2 Offline Brotli font compression runs directly via woff2_compress on local font assets without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Bare-bones positional CLI accepting a single filename with no --output, --json, or --dry-run flags, though it never prompts interactively.
- Minimal positional-only CLI (
woff2_compress <file>) - Lacks
--output,--json, and rich--helpflags
100% offline local compression, though woff2_compress writes a sibling .woff2 file next to the input and overwrites if it already exists.
- No
--outputpath flag; writes alongside input file
Easy on macOS/Linux via brew install woff2 or distro packages (woff2), while Windows typically requires compiling C++ source or using MSYS2.
- Packaged on Homebrew and Linux distros; C++ build needed on Windows
Fast reference compressor for whole fonts, though fonttools subset --flavor=woff2 is more versatile when glyph subsetting is also desired.
- Single-purpose whole-font WOFF2 compressor/decompressor
Official Google reference repository (google/woff2) in stable maintenance mode under MIT.
- Official
google/woff2repository
Sparse README documentation reflecting the minimal scope of the reference C++ utilities.
- Minimal README in
google/woff2
Security, Auth & Guardrails
None required; operates strictly on local font files.
100% free, offline, and MIT open-source.
# WOFF2 Agent Rules - `woff2_compress` has no `-o`/`--output` flag and silently overwrites a sibling `.woff2` file—copy inputs into a staging directory if needed. - Use `woff2_info` for read-only inspection, or prefer `fonttools subset --flavor=woff2` when subsetting and compressing together.
Agent-Ready Command Recipes
Safe Read-Only Queries
woff2_info font.woff2
Prints compressed and uncompressed SFNT table sizes read-only without writing files.
Controlled Writes & Previews
woff2_compress dist/font.ttf
Compresses dist/font.ttf and writes dist/font.woff2 alongside it.
Strengths for Agents
- + Official Google reference implementation for WOFF 2.0 Brotli font compression.
- +
woff2_infoprovides quick read-only inspection of compressed font tables. - + Fast, offline native C++ binaries.
Caveats & Pitfalls
- ! No
-o/--outputflag;woff2_compressalways writes<input>.woff2in the input directory and overwrites existing files. - ! No
--jsonoutput or subsetting support (usefonttoolsfor subsetting).