aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:35:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:35:05 +0000
commit40f3d4c24ccfd116a53120e36df796a959ca6499 (patch)
tree3a0c9c98e6651d722616cbdb4fcf836103237eaf /terminal.c
parentconfig: add default font when using the default config (diff)
terminal: error out when we fail to load the primary font
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index fe8860ad..9388d0d7 100644
--- a/terminal.c
+++ b/terminal.c
@@ -773,7 +773,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
term_set_window_title(term, "foot");
/* Load fonts */
- term_font_dpi_changed(term);
+ if (!term_font_dpi_changed(term))
+ goto err;
/* Start the slave/client */
if ((term->slave = slave_spawn(term->ptmx, argc, term->cwd, argv, term_env, conf->shell, login_shell)) == -1)