From ee445d2915133b17d2586666973334ed6d679376 Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Mon, 28 Jul 2025 18:08:48 -0600 Subject: [PATCH] font: compare font Index packed structs directly Packed structs can be compared directly now, no need to convert them to an int anymore. --- src/font/shaper/run.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font/shaper/run.zig b/src/font/shaper/run.zig index 92e629e19..90917f657 100644 --- a/src/font/shaper/run.zig +++ b/src/font/shaper/run.zig @@ -247,7 +247,7 @@ pub const RunIterator = struct { if (j == self.i) current_font = font_info.idx; // If our fonts are not equal, then we're done with our run. - if (font_info.idx.int() != current_font.int()) break; + if (font_info.idx != current_font) break; // If we're a fallback character, add that and continue; we // don't want to add the entire grapheme.