mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
font/shaper: run hash should include font index
This commit is contained in:
@ -250,6 +250,9 @@ pub const RunIterator = struct {
|
||||
// Add our length to the hash as an additional mechanism to avoid collisions
|
||||
autoHash(&hasher, j - self.i);
|
||||
|
||||
// Add our font index
|
||||
autoHash(&hasher, current_font);
|
||||
|
||||
// Move our cursor. Must defer since we use self.i below.
|
||||
defer self.i = j;
|
||||
|
||||
|
Reference in New Issue
Block a user