terminal: error out when we fail to load the primary font

This commit is contained in:
Daniel Eklöf 2020-02-28 18:35:05 +01:00
parent 3a9a2bb6a4
commit 40f3d4c24c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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