Project

Building from source

How the fonts are built, and how to change them.

The repository holds the Openbase Sans sources as UFO (one per weight) and the scripts that build every font from them. Everything else is generated.

sources/        Openbase Sans UFOs: the only hand-edited font data
scripts/        build_sans.py, build-mono.mjs, build_drawn.py, sync.mjs, …
fonts/          built TTF + WOFF2 per family (committed)
packages/fonts      @openbase/fonts (npm)
packages/openbase_fonts  openbase_fonts (Flutter)
apps/web        this website

The pipeline

pip install -r requirements.txt pyclipper==1.3.0.post6
pnpm install

pnpm fonts:sans    # sources/*.ufo   -> fonts/OpenbaseSans
pnpm fonts:mono    # fonts/OpenbaseSans   -> fonts/OpenbaseMono
pnpm fonts:drawn   # sources/*.ufo   -> fonts/OpenbaseDrawn
pnpm fonts:data    # fonts/          -> the site's numbers
pnpm fonts:sync    # fonts/          -> packages, site, downloads
# or all of it: pnpm fonts:all

Edit a UFO in FontForge, Glyphs, FontLab or RoboFont, run pnpm fonts:all, and the change reaches Openbase Mono, Openbase Drawn, both packages and this site.

Checks

  • python scripts/check_languages.py: every language sample on the site is fully covered.
  • python scripts/verify_roundtrip.py: Openbase Sans builds from its sources into the same font: every point, hint, metric and kerning pair, checked against the original TTFs.
  • python scripts/compat_audit.py: how close the weights are to interpolation-compatible masters.
  • flutter test in packages/openbase_fonts: Openbase Drawn and Openbase Sans measure the same width in every weight.
NextIntroduction