summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--assets/MapleMono-NF-Regular.ttfbin0 -> 2384652 bytes
-rw-r--r--src/gui/gui.zig4
3 files changed, 2 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 691cb6f7..4416d8f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@ zig-out*
.zig-cache/
.zig-cache/*
test/__pycache__/
-assets/MapleMono-NF-Regular.ttf
# a failing snapshot writes <stem>.actual beside its golden; it is the failure
# report, not a source of truth, and eleven had been committed by accident
test/snapshots/*.actual
diff --git a/assets/MapleMono-NF-Regular.ttf b/assets/MapleMono-NF-Regular.ttf
new file mode 100644
index 00000000..735b0ce2
--- /dev/null
+++ b/assets/MapleMono-NF-Regular.ttf
Binary files differ
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index 9d785b96..98a203a6 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -165,7 +165,7 @@ test "FreeType and HarfBuzz allocate from the gui allocator and give it all back
try std.testing.expectEqual(@as(c_int, 0), c.ui_font_substitutes(font, c.ui_font_glyph(font, '-')));
// A font with ligatures runs the whole HarfBuzz pass.
- const bytes = filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf") catch return;
+ const bytes = try filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf");
defer std.testing.allocator.free(bytes);
const maple = c.ui_font_new(bytes.ptr, @intCast(bytes.len)) orelse return error.FontInit;
defer c.ui_font_free(maple);
@@ -6274,7 +6274,7 @@ fn textTestLine(comptime text: []const u8) [text.len]pardes.Cell {
}
test "a ligature draws across its cells, one slice each, and comes apart under the cursor" {
- const bytes = filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf") catch return error.SkipZigTest;
+ const bytes = try filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf");
defer std.testing.allocator.free(bytes);
const font = c.ui_font_new(bytes.ptr, @intCast(bytes.len)) orelse return error.FontInit;
defer c.ui_font_free(font);