font: update shaper to support new renderstate

This commit is contained in:
Mitchell Hashimoto
2025-11-18 14:21:17 -10:00
parent 29db3e0295
commit 2d94cd6bbd
3 changed files with 805 additions and 220 deletions

View File

@@ -1,3 +1,4 @@
const std = @import("std");
const builtin = @import("builtin");
const options = @import("main.zig").options;
const run = @import("shaper/run.zig");
@@ -72,6 +73,12 @@ pub const RunOptions = struct {
/// cached values may be updated during shaping.
grid: *SharedGrid,
/// The cells for the row to shape.
cells: std.MultiArrayList(terminal.RenderState.Cell).Slice = .empty,
/// The x boundaries of the selection in this row.
selection2: ?[2]u16 = null,
/// The terminal screen to shape.
screen: *const terminal.Screen,