font: add noop endFrame calls to all other shapers

This commit is contained in:
Mitchell Hashimoto
2024-06-22 20:49:10 -07:00
parent 9271fd50b6
commit 2607446235
3 changed files with 12 additions and 0 deletions

View File

@ -74,6 +74,10 @@ pub const Shaper = struct {
self.hb_feats.deinit(self.alloc);
}
pub fn endFrame(self: *const Shaper) void {
_ = self;
}
/// Returns an iterator that returns one text run at a time for the
/// given terminal row. Note that text runs are are only valid one at a time
/// for a Shaper struct since they share state.

View File

@ -64,6 +64,10 @@ pub const Shaper = struct {
self.run_state.deinit(self.alloc);
}
pub fn endFrame(self: *const Shaper) void {
_ = self;
}
pub fn runIterator(
self: *Shaper,
grid: *SharedGrid,

View File

@ -52,6 +52,10 @@ pub const Shaper = struct {
self.* = undefined;
}
pub fn endFrame(self: *const Shaper) void {
_ = self;
}
/// Returns an iterator that returns one text run at a time for the
/// given terminal row. Note that text runs are are only valid one at a time
/// for a Shaper struct since they share state.