diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 16:37:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 16:37:30 +0000 |
| commit | 8d6817a999aae38bc5786569a60e2ac92ace66e7 (patch) | |
| tree | 68278c3e26c2f09641e55c2d1350ac4d77a99837 | |
| parent | Merge branch 'fdm' (diff) | |
term: require all font variants to load
| -rw-r--r-- | terminal.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -356,15 +356,15 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl, tll_foreach(conf->fonts, it) tll_push_back(font_names, it->item); - if ((term->fonts[0] = font_from_name(font_names, "")) == NULL) { + if ((term->fonts[0] = font_from_name(font_names, "")) == NULL || + (term->fonts[1] = font_from_name(font_names, "style=bold")) == NULL || + (term->fonts[2] = font_from_name(font_names, "style=italic")) == NULL || + (term->fonts[3] = font_from_name(font_names, "style=bold italic")) == NULL) + { tll_free(font_names); goto err; } - term->fonts[1] = font_from_name(font_names, "style=bold"); - term->fonts[2] = font_from_name(font_names, "style=italic"); - term->fonts[3] = font_from_name(font_names, "style=bold italic"); - tll_free(font_names); { |
