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
parent
a8b9dd8dfc
commit
ee445d2915
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue