mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-27 11:06:31 +00:00
config: add remaining font modifiers
This commit is contained in:
@@ -211,7 +211,8 @@ pub fn init(alloc: Allocator, options: renderer.Options) !Metal {
|
||||
options.font_group.group.sprite = font.sprite.Face{
|
||||
.width = metrics.cell_width,
|
||||
.height = metrics.cell_height,
|
||||
.thickness = 2 * @as(u32, if (options.config.font_thicken) 2 else 1),
|
||||
.thickness = metrics.underline_thickness *
|
||||
@as(u32, if (options.config.font_thicken) 2 else 1),
|
||||
.underline_position = metrics.underline_position,
|
||||
};
|
||||
|
||||
|
||||
@@ -548,7 +548,7 @@ fn resetFontMetrics(
|
||||
font_group.group.sprite = font.sprite.Face{
|
||||
.width = metrics.cell_width,
|
||||
.height = metrics.cell_height,
|
||||
.thickness = 2 * @as(u32, if (font_thicken) 2 else 1),
|
||||
.thickness = metrics.underline_thickness * @as(u32, if (font_thicken) 2 else 1),
|
||||
.underline_position = metrics.underline_position,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user