Skip to content

API reference

The build and verification scripts live under scripts/ and run in two Python environments:

  • FontForge Python (fontforge -lang=py -script) runs build_font, fira_ligatures, and customizations.*.
  • uv Python (uv run --locked python) runs finalize, validate, and proof.
  • config is shared by both and uses the standard library only.
Module Runtime Purpose
config Shared (stdlib) Family metadata, style names, upstream/Fira paths, ligature spec loading
build_font FontForge Per-style FontForge driver applying glyph customizations and ligatures
fira_ligatures FontForge Ligaturizer integration, script/language remapping, italic slanting, \|\| fitting
finalize uv fontTools post-processing: layout cleanup, .null width, side bearings, metadata
validate uv Table, metadata, outline, and HarfBuzz/CoreText shaping verification
proof uv Before/after PNG proof sheet renderer (HarfBuzz + FreeType)
customizations FontForge Customization contract, Style metrics, enforcement driver, outline and geometry helpers
customizations.* FontForge Individual glyph customization subclasses in pipeline order