mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
8ffc556d44
commit
1233e000f0
1 changed files with 6 additions and 0 deletions
6
server.c
6
server.c
|
|
@ -291,6 +291,12 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
||||||
conf->hold_at_exit = cdata.hold;
|
conf->hold_at_exit = cdata.hold;
|
||||||
|
|
||||||
config_override_apply(conf, &overrides, false);
|
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) {
|
*instance = (struct terminal_instance) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue