fix(render): resolve ink contrast per surface, not once per poster

templates/lib.typ gains WCAG luminance/contrast-ratio/ink-on and a
surface-aware palette-of(). framed and split place type on flat colour and
were inheriting an ink measured against the artwork, rendering white on
cream at 1.15:1. Now computed per surface: 18.34:1 on the regression
fixture. Accent held to the same bar with fallback to ink.

Adds tests/contrast-check.typ, run per fixture by the harness.
35/35 render combos and 7/7 contrast assertions pass.
This commit is contained in:
mozempk
2026-08-27 09:33:08 +02:00
parent aad8a7fbdf
commit 5d27417c54
11 changed files with 1476 additions and 200 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Caratteri di terze parti inclusi in pi-imgen
Generato da `scripts/fetch-fonts.sh` il 2026-08-27 07:26 UTC. Non modificare a mano.
Generato da `scripts/fetch-fonts.sh` il 2026-08-27 07:30 UTC. Non modificare a mano.
I file dei caratteri stanno in `vendor/fonts/<id>/` e **non** sono versionati.
Ogni cartella contiene il file `LICENSE` originale.