summaryrefslogtreecommitdiff
path: root/vendor/README.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 03:05:42 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit6af3c07190e7aec46596e00afb3c6b613c9e02eb (patch)
treec4bd81ab95dcf28865bfacf5f104ccab4d38af6f /vendor/README.md
parent43151809dac7041bd04bb5181abf7f1182ffea7f (diff)
downloadsketchbook-6af3c07190e7aec46596e00afb3c6b613c9e02eb.tar.gz
sketchbook-6af3c07190e7aec46596e00afb3c6b613c9e02eb.zip
Add pardes's font shim and glyph atlas
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.
Diffstat (limited to 'vendor/README.md')
-rw-r--r--vendor/README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/README.md b/vendor/README.md
index c23a785..1d3e42b 100644
--- a/vendor/README.md
+++ b/vendor/README.md
@@ -9,6 +9,10 @@ Single-file codecs, vendored unchanged; `codecs.c` compiles them for the host.
`cgltf.c` compiles the unchanged cgltf header for the optional `gltf` module.
+`font.c` and `font.h` are pardes's FreeType and HarfBuzz shim, moved from its
+`src/gui/` unchanged, under `src/font/Atlas.zig`. The embedder compiles them
+against its own FreeType and HarfBuzz and exports `ui_malloc` and friends.
+
`presentation-time/presentation-time.xml` is the Wayland presentation-time v3
protocol description (the client binds v1; its license is included in the XML).
On Linux, `build.zig` runs `wayland-scanner` to generate a client header and C