aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-31 17:52:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-31 17:58:35 +0000
commit1233e000f02ce664134fbbba7b46b710f544436d (patch)
tree85782bec9fee0b3d3a6fe00d651d1d183abaead7
parentmain: verify primary font is monospaced at startup (diff)
server: verify primary font is monospaced
... unless we’re re-using the main conf as-is, in which case we will already have done this (and the conf’s user-notification list will already contain a warning).
-rw-r--r--server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.c b/server.c
index 7d3d3ca0..5144ed17 100644
--- a/server.c
+++ b/server.c
@@ -291,6 +291,12 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
conf->hold_at_exit = cdata.hold;
config_override_apply(conf, &overrides, false);
+
+ if (conf->tweak.font_monospace_warn && conf->fonts[0].count > 0) {
+ check_if_font_is_monospaced(
+ conf->fonts[0].arr[0].pattern,
+ &conf->notifications);
+ }
}
*instance = (struct terminal_instance) {