Skip to content

Validation and proofing

Automated validation

make check runs scripts/validate.py against every compiled style in fonts/, comparing each font directly with upstream Roboto Mono, the Fira Code donor weight, and the JSON manifest emitted by build_font.py.

Each style must pass five check groups:

  • Changed glyphs. Every glyph outside the build manifest has the exact same decomposed outline and advance width as Roboto Mono. Every declared change genuinely differs, and every preserved composite stays outline-identical to upstream. Only .null, lig.*, and CR.* glyphs may be added.
  • Tables and metadata. The table set matches upstream (no GDEF, GPOS, or AAT tables). OS/2, hhea, head, post, and PANOSE fields match upstream except for intended changes. Name records, version string, vendor ID, and post.isFixedPitch == 1 are verified, and Roboto's trademark notice (name ID 7) must be absent. Every glyph has the cell advance, every left side bearing equals its outline's xMin, and no glyph exceeds OS/2.usWinAscent or OS/2.usWinDescent.
  • Ligature outlines. Every retained ligature glyph's bounding box matches its Fira Code donor outline (within 3 font units) after Ligaturizer's em/cell scaling and the manifest's recorded fitting/slanting transform.
  • Shaping. Tested with HarfBuzz across eight script/language combinations (auto, Latn, Cyrl, Grek, Latn/ca, Latn/ro, Latn/tr, Cyrl/sr) and with CoreText on macOS:
  • Every retained ligature forms using spacer (CR.*) and ligature (lig.*) glyphs while keeping one cell advance per input character.
  • Every excluded ligature stays unligated.
  • calt=0 disables every ligature.
  • smcp=1 produces small capitals (A.smcp, I.smcp) in every system.
  • Printable ASCII renders without .notdef and with exact cell advances.
  • Upstream parity. With calt=0, every mapped Unicode character (>= U+0020) and a set of combining, Vietnamese, Cyrillic, and code sample strings shape identically to Roboto Mono, both normally and with smcp=1.

To validate a single style:

uv run --locked python scripts/validate.py --style Regular

Proof sheets

make proof runs scripts/proof.py, shaping text with HarfBuzz and rasterizing it with FreeType into PNG comparison sheets under build/proof/:

  • glyphs.png - all redrawn glyphs and key composites in every style at 72 px, with Roboto Mono above Automata Mono.
  • small-sizes.png - code samples in Regular and Bold at 11, 12, 13, 14, and 16 px, both unhinted (as on macOS) and hinted (as on Windows and Linux), magnified 3x with nearest-neighbor scaling.
  • ligatures.png - retained and excluded ligature sequences in every style at 40 px, with calt on and off.

Always inspect the proof sheets after changing any glyph customization.