mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
term: require all font variants to load
This commit is contained in:
parent
ad0f8a02d5
commit
8d6817a999
1 changed files with 5 additions and 5 deletions
10
terminal.c
10
terminal.c
|
|
@ -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);
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue