From 005178177a1ddb2eb2f1af5fad36e2717758ee8e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 31 Jul 2026 19:02:04 -0300 Subject: the gui wears any monospace font on the machine --- src/main.zig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 3808e1f8..9822ea3c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -177,7 +177,12 @@ fn parseCtrlKey(raw: []const u8) ?u21 { // The shells are imported inside main(), which a test build never analyses — // so their inline tests need naming here to exist at all. gui.zig only // compiles when it IS the shell (it @cImports SDL), hence the comptime gate; -// under -Dplatform=tty this block analyses to nothing. +// under -Dplatform=tty this block analyses to nothing. Naming a file gets THAT +// file's tests and no further: fonts.zig is imported by both gui.zig and +// builtins.zig and still needs its own line here. test { - if (comptime pardes.platform == .gui) _ = @import("gui/gui.zig"); + if (comptime pardes.platform == .gui) { + _ = @import("gui/gui.zig"); + _ = @import("gui/fonts.zig"); + } } -- cgit v1.3