mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
font: add constraint width to glyph cache key
This commit is contained in:
@ -287,7 +287,6 @@ pub fn renderGlyph(
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// Render into the atlas
|
||||
const glyph = self.resolver.renderGlyph(
|
||||
alloc,
|
||||
@ -348,7 +347,8 @@ const GlyphKey = struct {
|
||||
cell_width: u2,
|
||||
thicken: bool,
|
||||
thicken_strength: u8,
|
||||
_padding: u5 = 0,
|
||||
constraint_width: u2,
|
||||
_padding: u3 = 0,
|
||||
},
|
||||
|
||||
inline fn from(key: GlyphKey) Packed {
|
||||
@ -359,6 +359,7 @@ const GlyphKey = struct {
|
||||
.cell_width = key.opts.cell_width orelse 0,
|
||||
.thicken = key.opts.thicken,
|
||||
.thicken_strength = key.opts.thicken_strength,
|
||||
.constraint_width = key.opts.constraint_width,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user