fix(render): environment-aware atlas drift guard, pinned text scale, shipped-atlas coverage

This commit is contained in:
Martino Ferrari committed 2026-09-28 10:54:00 +02:00
1 parent 5ca3587325
commit 1cb5970757
6 files changed
+257 -31

No files matched your search

+5 -1
View File
@@ -617,9 +617,13 @@ def main(argv=None):
if args.check:
out = Path(args.out)
committed = out.read_bytes() if out.is_file() else None
fresh, _ = generate(args.font, args.em, args.supersample)
# A missing committed file is drift whatever else is wrong with the
# machine, so it is reported before the font is read: otherwise a checkout
# with no atlas *and* no installed face would look like an environment
# gap (EXIT_BAD_FONT) instead of the failure it is.
if committed is None:
return _fail(EXIT_MISMATCH, f"{out} does not exist; run {SCRIPT} to generate it")
fresh, _ = generate(args.font, args.em, args.supersample)
if committed != fresh.encode():
return _fail(
EXIT_MISMATCH,