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:
Mitchell Hashimoto
2023-11-05 22:14:47 -08:00
committed by GitHub

View File

@ -421,7 +421,7 @@ pub fn setFontSize(self: *Metal, size: font.face.DesiredSize) !void {
self.font_group.group.sprite = font.sprite.Face{
.width = self.cell_size.width,
.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,
};