<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sketchbook.git/src/font/Atlas.zig, branch main</title>
<subtitle>A small Zig platform for sketching games and toys</subtitle>
<id>https://git.0x4200.cafe/sketchbook.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/sketchbook.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/'/>
<updated>2026-11-17T15:15:01Z</updated>
<entry>
<title>Add pardes's font shim and glyph atlas</title>
<updated>2026-11-17T15:15:01Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T06:05:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/commit/?id=6af3c07190e7aec46596e00afb3c6b613c9e02eb'/>
<id>urn:sha1:6af3c07190e7aec46596e00afb3c6b613c9e02eb</id>
<content type='text'>
Moved from pardes's src/gui/ (step S2 of moving its renderer here):
vendor/font.c and font.h, its FreeType and HarfBuzz shim, byte for byte,
and src/font/Atlas.zig, the glyph atlas from gui.zig: the faces (a
primary and fallbacks), the 2048x2048 R8 stage filled pen-style, the
slot of every glyph drawn, the dirty rows, the hand-drawn box rules,
underlines and strikethrough, and the centring of grip glyphs. The key's
bits are pardes's. What gui.zig read from its globals and its window
(the sizes, a centred glyph's cells, dp(1) for the line thickness) is
passed to each cachedGlyph; the frame probe stays in pardes. Atlas.zig
imports the embedder's translation of font.h as `c`, and the embedder
compiles font.c against its own FreeType and HarfBuzz and exports
ui_malloc and friends; the file's own tests (the raster, the rules, the
decorations, the dirty rows) export them over C's heap and run from
pardes's unit-test.
</content>
</entry>
</feed>
