Skip to content

Commit 189e758

Browse files
KevinSilvesterDrKJeff16
authored andcommitted
fix(font): update font releted option types
1 parent 66412e7 commit 189e758

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

lua/wezterm/types/config.lua

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ local horiz_align = {
269269
---
270270
---@field width? "Cover"|"Contain"|number|string
271271

272-
---@alias AllFontAttributes Fonts|FontAttributes|FontFamilyAttributes
273-
274272
---@enum (key) FontRules.Blink
275273
local blink = {
276274
None = 1,
@@ -280,7 +278,7 @@ local blink = {
280278

281279
---@class FontRules
282280
---@field blink? FontRules.Blink
283-
---@field font? AllFontAttributes
281+
---@field font? TextStyle
284282
---@field intensity? FormatItemAttribute.Intensity
285283
---@field invisible? boolean
286284
---@field italic? boolean
@@ -613,7 +611,7 @@ local exit_behavior_messaging = {
613611
--- - [`wezterm.font_with_fallback()`](lua://Wezterm.font_with_fallback)
614612
--- - [`wezterm.font()`](lua://Wezterm.font)
615613
---
616-
---@field char_select_font? Fonts|FontFamilyAttributes
614+
---@field char_select_font? TextStyle
617615
---Specifies the size of the font used with [`CharSelect`](https://wezterm.org/config/lua/keyassignment/CharSelect.html).
618616
---
619617
---@field char_select_font_size? number
@@ -713,7 +711,7 @@ local exit_behavior_messaging = {
713711
--- - [`wezterm.font()`](lua://Wezterm.font)
714712
--- - [`wezterm.font_with_fallback()`](lua://Wezterm.font_with_fallback)
715713
---
716-
---@field command_palette_font? AllFontAttributes
714+
---@field command_palette_font? TextStyle
717715
---Specifies the size of the font used with `ActivateCommandPalette`.
718716
---
719717
---See:
@@ -1108,7 +1106,7 @@ local exit_behavior_messaging = {
11081106
--- - [`wezterm.font()`](lua://Wezterm.font)
11091107
--- - [`wezterm.font_with_fallback()`](lua://Wezterm.font_with_fallback)
11101108
---
1111-
---@field font? AllFontAttributes
1109+
---@field font? TextStyle
11121110
---@field font_colr_rasterizer? FontRasterizer
11131111
---By default, wezterm will use an appropriate system-specific method
11141112
---for locating the fonts that you specify using the options below.
@@ -1818,7 +1816,7 @@ local exit_behavior_messaging = {
18181816
---config.pane_select_font = wezterm.font 'Roboto'
18191817
---```
18201818
---
1821-
---@field pane_select_font? AllFontAttributes
1819+
---@field pane_select_font? TextStyle
18221820
---@field pane_select_font_size? number
18231821
---If non-zero, specifies the period (in seconds) at which various statistics are logged.
18241822
---

lua/wezterm/types/wezterm.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ local freetype_target = {
563563
---@field button_fg? string
564564
---@field button_hover_bg? string
565565
---@field button_hover_fg? string
566-
---@field font? AllFontAttributes
566+
---@field font? TextStyle
567567
---@field font_size? number
568568
---@field inactive_titlebar_bg? string
569569
---@field inactive_titlebar_border_bottom? string
@@ -2394,4 +2394,3 @@ function M.utf16_to_utf8(s) end
23942394
return M
23952395

23962396
-- vim: set ts=2 sts=2 sw=2 et ai si sta:
2397-

0 commit comments

Comments
 (0)