From 8844ae3a1044e468f455f77dc51cd51677ba8cfd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 May 2024 17:18:12 +0530 Subject: [PATCH] Report when a family has variable fonts --- kittens/choose_fonts/ui.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kittens/choose_fonts/ui.go b/kittens/choose_fonts/ui.go index 99b5a7d2c..855b50e4e 100644 --- a/kittens/choose_fonts/ui.go +++ b/kittens/choose_fonts/ui.go @@ -96,6 +96,9 @@ func (h *handler) draw_family_summary(start_x int, sz loop.ScreenSize) (err erro add_line(styles) add_line("") } + if s.has_variable_faces { + add_line(fmt.Sprintf("This font is %s allowing for finer style control", h.lp.SprintStyled("fg=magenta", "variable"))) + } add_line(fmt.Sprintf("Press the %s key to choose this family", h.lp.SprintStyled("fg=yellow", "Enter"))) } else { lines = append(lines, "Reading font data, please wait…")