The card a shared link unfurls to was a picture of the models with no title on it, and the models on it were too small to tell apart. Both are fixed, but the part worth writing down is how. The first attempt was an HTML page composed in the site's own fonts and screenshotted. It looked right and it was wrong: the model count on it becomes a picture of a number the moment the shutter closes, and `check-docs.ts` cannot read a picture. That is the exact failure that check exists for — the READMEs claimed 27 models when there were 37 — and a card is the worse place to have it, because nobody reading one can see the kit to know it is stale. So `bun run cover:build` counts the catalogue and draws the numbers it counted. `site:build` runs it, which means the published card cannot be older than the models it shows, and the day a model is added the card says 38 without anyone remembering to make it. Drawing type needed type. `scripts/text.ts` reads the outlines out of a `.ttf` and fills them with a scanline pass — four sub-scanlines a row with exact horizontal coverage, which is more code than sampling a 4x4 grid and visibly better at the 16px the two mono lines are set in. It is deliberately partial: format 4 cmap, simple and composite outlines, advances, no kerning or shaping. What it cannot draw it throws on, because a headline missing a letter is not something you notice before it is published. Archivo and IBM Plex Mono come with it under the OFL, the same two faces the site is set in. The renderer moved to `scripts/raster.ts` so the card and the contact sheet draw from the same code and cannot disagree about what a barrel looks like; `render.ts` is now the command line over it, unchanged in what it does. Its one new flag is `--ground`, a flat background instead of the per-cell gradient: forty gradients side by side read as banding, and on the page's own ink the models float on the card as one field instead of sitting on it as a grey slab. Ten columns by four, because 1.91:1 and 37 models want 40 cells and at that shape the cells come out square, which is what lets a barrel look like a barrel at 116 pixels. The last row is centred — three empty cells left flush is a notch in the corner, and a short row centred is how a contact sheet ends. Byte-identical across runs, so it does not churn the diff on every build.
126 KiB
126 KiB