summaryrefslogtreecommitdiff
path: root/src/scope
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 09:06:20 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitc94455e1a8d2a430d8dcd74603bcd0d7b27aeb68 (patch)
tree4e759f36dd812689211b9a7de1775a047c08e148 /src/scope
parent1f9fa4fc66c68e66e7653498f04d17052833d6c3 (diff)
downloadsketchbook-c94455e1a8d2a430d8dcd74603bcd0d7b27aeb68.tar.gz
sketchbook-c94455e1a8d2a430d8dcd74603bcd0d7b27aeb68.zip
text: the atlas's glyphs are pardes's, byte for byte, tested
A test of src/host/Glyphs.zig asks pardes's own Atlas (cachedGlyph, in its cells) and the host's atlas for the printable ASCII glyphs of six faces (Go Mono, its bold and italic, JetBrains Mono NL and its medium, Go's sans) at 13, 19.5, 26 and 52 px: 1980 of the 2256 have the same ink box, the same coverage bytes and the same place against the pen and baseline (the sans's advance centred in pardes's cell as pardes centres it); the other 276 reach out of pardes's cell (descenders, `|`, `_`), which cuts them off, and are counted, not compared. Both rasterize with font.c's ui_font_raster over one FreeType face. What differs is only where the coverage goes after: pardes mixes it in ui.frag with blending off, the host through SDL's premultiplied blend, the same mix(ground, ink, a) for an opaque ink. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/scope')
0 files changed, 0 insertions, 0 deletions