From d8325076448bed1b3df2cac6222047e3d816e913 Mon Sep 17 00:00:00 2001 From: Patrick Fong Date: Fri, 29 Sep 2023 11:42:49 -0700 Subject: [PATCH 1/2] improve docs on font config --- src/config/Config.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 026a6c2d3..aae9ce8c3 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -24,6 +24,8 @@ const c = @cImport({ }); /// The font families to use. +/// You can generate list of valid values using the CLI +/// path/to/ghostty/cli +list-fonts @"font-family": ?[:0]const u8 = null, @"font-family-bold": ?[:0]const u8 = null, @"font-family-italic": ?[:0]const u8 = null, @@ -39,7 +41,7 @@ const c = @cImport({ /// requests a disabled font style, the regular font style will be used /// instead. /// -/// These are only valid if there is an exact font-family also specified. +/// These are only valid if its corresponding font-family is also specified. /// If no font-family is specified, then the font-style is ignored unless /// you're disabling the font style. @"font-style": FontStyle = .{ .default = {} }, From 741606a7ab7d174031836c0063563c04dfb07467 Mon Sep 17 00:00:00 2001 From: Patrick Fong Date: Fri, 29 Sep 2023 11:44:32 -0700 Subject: [PATCH 2/2] fix grammar --- src/config/Config.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index aae9ce8c3..ba8544309 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -24,8 +24,8 @@ const c = @cImport({ }); /// The font families to use. -/// You can generate list of valid values using the CLI -/// path/to/ghostty/cli +list-fonts +/// You can generate the list of valid values using the CLI: +/// path/to/ghostty/cli +list-fonts @"font-family": ?[:0]const u8 = null, @"font-family-bold": ?[:0]const u8 = null, @"font-family-italic": ?[:0]const u8 = null,