mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +03:00
font/noop: conform to new run struct type
This commit is contained in:
@ -111,7 +111,13 @@ pub const Shaper = struct {
|
|||||||
// expose a public API for this.
|
// expose a public API for this.
|
||||||
const face = try run.grid.resolver.collection.getFace(run.font_index);
|
const face = try run.grid.resolver.collection.getFace(run.font_index);
|
||||||
for (state.codepoints.items) |entry| {
|
for (state.codepoints.items) |entry| {
|
||||||
const glyph_index = face.glyphIndex(entry.codepoint);
|
const glyph_index = face.glyphIndex(entry.codepoint) orelse {
|
||||||
|
// The run iterator shared logic should guarantee that
|
||||||
|
// there is a glyph index for all codepoints in the run.
|
||||||
|
// This is not well tested because we don't use the noop
|
||||||
|
// shaper in any release builds.
|
||||||
|
unreachable;
|
||||||
|
};
|
||||||
try self.cell_buf.append(self.alloc, .{
|
try self.cell_buf.append(self.alloc, .{
|
||||||
.x = @intCast(entry.cluster),
|
.x = @intCast(entry.cluster),
|
||||||
.glyph_index = glyph_index,
|
.glyph_index = glyph_index,
|
||||||
|
Reference in New Issue
Block a user