From 86ffca0024326110962f0880727f4eb84e6a48d1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 11:13:20 -0300 Subject: sketchbook: frames for ffmpeg (--export, on a clock of its own), text sizes, a font from the environment Co-Authored-By: Claude Fable 5.2 --- test/text.script | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/text.script (limited to 'test/text.script') diff --git a/test/text.script b/test/text.script new file mode 100644 index 0000000..5bea6f5 --- /dev/null +++ b/test/text.script @@ -0,0 +1,7 @@ +# `textSize` is what `text` draws: at scale 1 ten digits of the built-in +# font advance about 80 px on a 16 px line, and the box under them is that. +screenshot .zig-cache/text/native.png +expect-pixel .zig-cache/text/native.png 84 11 32 64 96 255 +expect-pixel .zig-cache/text/native.png 84 24 32 64 96 255 +expect-pixel .zig-cache/text/native.png 97 11 16 16 16 255 +expect-pixel .zig-cache/text/native.png 84 27 16 16 16 255 -- cgit v1.3