font/shaper: fix style for runs

This commit is contained in:
Mitchell Hashimoto
2024-03-09 20:37:33 -08:00
parent ff0e07a907
commit cf885b8998

View File

@ -55,7 +55,7 @@ pub const RunIterator = struct {
try self.hooks.prepare();
// Let's get our style that we'll expect for the run.
const style = self.row.style(&cells[0]);
const style = self.row.style(&cells[self.i]);
// Go through cell by cell and accumulate while we build our run.
var j: usize = self.i;