diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-31 19:02:04 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:08 -0300 |
| commit | 005178177a1ddb2eb2f1af5fad36e2717758ee8e (patch) | |
| tree | 6e974c12def02fd855446d84db25232c1f3b4fd2 /src/main.zig | |
| parent | 41847fce244fdd0d01971c302b89d1252f6497ed (diff) | |
| download | pardes-005178177a1ddb2eb2f1af5fad36e2717758ee8e.tar.gz pardes-005178177a1ddb2eb2f1af5fad36e2717758ee8e.zip | |
the gui wears any monospace font on the machine
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 9 |
1 files changed, 7 insertions, 2 deletions
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"); + } } |
