Update documentation and scripts for font addition process; introduce uv run add-font CLI command for streamlined font management. Enhance formula generation with improved class name formatting and validation steps. Remove outdated font formula files.

This commit is contained in:
Matt Troutman 2026-02-09 22:04:01 -06:00
parent 69d8156b09
commit 56b64d0b34
No known key found for this signature in database
266 changed files with 1187 additions and 8145 deletions

View file

@ -0,0 +1,14 @@
"""Tests that a Formula file exists for every font."""
import pytest
from tests.conftest import FORMULA_DIR, get_font_dir_names
@pytest.mark.parametrize("font_name", get_font_dir_names())
def test_formula_file_exists(font_name):
"""Formula/font-<name>.rb exists for each font folder."""
# font_name is e.g. "font-acrylic-hand"; formula file is font-acrylic-hand.rb
formula_path = FORMULA_DIR / f"{font_name}.rb"
assert formula_path.is_file(), (
f"Missing formula for {font_name}: expected {formula_path}"
)