summaryrefslogtreecommitdiff
path: root/test/text.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 12:53:22 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commit45f705a5e590c3dfddc0a544e66beb9bf6205a4d (patch)
treec98d19a1b2dfc4808a46b41cf1b931703ff467b1 /test/text.script
parentf8d3a32f4f995eeb7e162b0702998b0565c11e4e (diff)
downloadsketchbook-45f705a5e590c3dfddc0a544e66beb9bf6205a4d.tar.gz
sketchbook-45f705a5e590c3dfddc0a544e66beb9bf6205a4d.zip
sketchbook: text rasterized at one scale and drawn at another (f.textScaled), steady under a moving camera
Diffstat (limited to 'test/text.script')
-rw-r--r--test/text.script4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/text.script b/test/text.script
index 4381f94..c27df2a 100644
--- a/test/text.script
+++ b/test/text.script
@@ -11,3 +11,7 @@ expect-pixel .zig-cache/text/native.png 66 198 32 64 96 255
expect-pixel .zig-cache/text/native.png 80 185 16 16 16 255
expect-pixel .zig-cache/text/native.png 168 236 32 64 96 255
expect-pixel .zig-cache/text/native.png 180 222 16 16 16 255
+# Rasterized at scale 3 and drawn at 1.5, ten digits cover 115 px (half
+# of scale 3's 230), not the 120 that scale 1.5 would shape.
+expect-pixel .zig-cache/text/native.png 123 265 32 64 96 255
+expect-pixel .zig-cache/text/native.png 127 256 16 16 16 255