From 08ebb6b64d048f3d3c50f2ebb513cdfcc5f53b66 Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Sun, 22 Dec 2024 12:34:43 -0500 Subject: [PATCH] fix tests for freetype to include cursor_height metric --- src/font/face/freetype.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/font/face/freetype.zig b/src/font/face/freetype.zig index f5ec9e7ec..bc503a3af 100644 --- a/src/font/face/freetype.zig +++ b/src/font/face/freetype.zig @@ -906,6 +906,7 @@ test "color emoji" { .overline_position = 0, .overline_thickness = 0, .box_thickness = 0, + .cursor_height = 0, }, }); try testing.expectEqual(@as(u32, 24), glyph.height); @@ -952,6 +953,7 @@ test "metrics" { .overline_position = 0, .overline_thickness = 1, .box_thickness = 1, + .cursor_height = 17, }, ft_font.metrics); // Resize should change metrics @@ -967,6 +969,7 @@ test "metrics" { .overline_position = 0, .overline_thickness = 2, .box_thickness = 2, + .cursor_height = 34, }, ft_font.metrics); }