mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
config_font_parse(): return fail/success
This commit is contained in:
parent
04703c07f0
commit
0d6b5f522e
4 changed files with 35 additions and 11 deletions
9
main.c
9
main.c
|
|
@ -403,8 +403,13 @@ main(int argc, char *const *argv)
|
|||
config_font_destroy(&it->item);
|
||||
tll_free(conf.fonts[i]);
|
||||
}
|
||||
tll_foreach(conf_fonts, it)
|
||||
tll_push_back(conf.fonts[0], config_font_parse(it->item));
|
||||
tll_foreach(conf_fonts, it) {
|
||||
struct config_font font;
|
||||
if (!config_font_parse(it->item, &font)) {
|
||||
LOG_ERR("%s: invalid font specification", it->item);
|
||||
} else
|
||||
tll_push_back(conf.fonts[0], font);
|
||||
}
|
||||
tll_free(conf_fonts);
|
||||
}
|
||||
if (conf_width > 0 && conf_height > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue