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).
This commit is contained in:
Daniel Eklöf 2021-08-31 19:52:31 +02:00
parent 8ffc556d44
commit 1233e000f0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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) {