font: compare font Index packed structs directly

Packed structs can be compared directly now, no need to convert them to
an int anymore.
pull/8206/head
Qwerasd 2025-07-28 18:08:48 -06:00
parent a8b9dd8dfc
commit ee445d2915
1 changed files with 1 additions and 1 deletions

View File

@ -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.