Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

WOFF2

$ woff2_compress Official Low Risk
Google · Design & Docs · MIT · macos / linux / windows

Google'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.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install woff2
CLI vs MCP Decision CLI Only

Offline Brotli font compression runs directly via woff2_compress on local font assets without MCP.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

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 --help flags
Trust & Safety 22 / 25

100% offline local compression, though woff2_compress writes a sibling .woff2 file next to the input and overwrites if it already exists.

  • No --output path flag; writes alongside input file
Setup & Portability 12 / 15

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
Utility & Efficiency 11 / 15

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
Maintenance & Lineage 7 / 10

Official Google reference repository (google/woff2) in stable maintenance mode under MIT.

  • Official google/woff2 repository
Docs & Verifiability 6 / 10

Sparse README documentation reflecting the minimal scope of the reference C++ utilities.

  • Minimal README in google/woff2

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates strictly on local font files.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect WOFF2 header and table metadata
woff2_info font.woff2

Prints compressed and uncompressed SFNT table sizes read-only without writing files.

Controlled Writes & Previews

Compress a TTF/OTF font to WOFF2
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_info provides quick read-only inspection of compressed font tables.
  • + Fast, offline native C++ binaries.

Caveats & Pitfalls

  • ! No -o/--output flag; woff2_compress always writes <input>.woff2 in the input directory and overwrites existing files.
  • ! No --json output or subsetting support (use fonttools for subsetting).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI