From 224fafc7c366682595c9c069c475d4e8228f70a6 Mon Sep 17 00:00:00 2001 From: katalx Date: Fri, 30 Jan 2026 21:22:48 -0500 Subject: whops --- ui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 992fe92..f3e3eb8 100644 --- a/ui.c +++ b/ui.c @@ -58,8 +58,13 @@ ft_load(const char *name) char *def_str; XFontSet fs = XCreateFontSet(dsp, name, &missing_charset_name, &missing_charset_count, &def_str); - for (int i = 0; i < missing_charset_count; i++) { - fprintf(stderr, "%s: No font found\n", missing_charset_name[i]); + if (missing_charset_count > 0) { + fputs("[Missing fonts: ", stderr); + for (int i = 0; i < missing_charset_count; i++) { + if (i > 0) fputs(", ", stderr); + fputs(missing_charset_name[i], stderr); + } + fputs("]\n", stderr); } XFreeStringList(missing_charset_name); return fs; -- cgit v1.2.3