mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #823 from mitchellh/fix-macos-font-resize
fix macos font being drawn thicker when updating font size
This commit is contained in:
@ -421,7 +421,7 @@ pub fn setFontSize(self: *Metal, size: font.face.DesiredSize) !void {
|
|||||||
self.font_group.group.sprite = font.sprite.Face{
|
self.font_group.group.sprite = font.sprite.Face{
|
||||||
.width = self.cell_size.width,
|
.width = self.cell_size.width,
|
||||||
.height = self.cell_size.height,
|
.height = self.cell_size.height,
|
||||||
.thickness = 2 * @as(u32, if (self.config.font_thicken) 2 else 1),
|
.thickness = metrics.underline_thickness * @as(u32, if (self.config.font_thicken) 2 else 1),
|
||||||
.underline_position = metrics.underline_position,
|
.underline_position = metrics.underline_position,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user