diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:35:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:35:05 +0000 |
| commit | 40f3d4c24ccfd116a53120e36df796a959ca6499 (patch) | |
| tree | 3a0c9c98e6651d722616cbdb4fcf836103237eaf /terminal.c | |
| parent | config: 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
