font: font_from_name() returns an allocated font struct

This commit is contained in:
Daniel Eklöf 2019-10-16 21:52:12 +02:00
parent 3ca6f9fe0b
commit a789230cf9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 21 additions and 17 deletions

2
font.h
View file

@ -58,6 +58,6 @@ struct font {
mtx_t lock;
};
bool font_from_name(font_list_t names, const char *attributes, struct font *result);
struct font *font_from_name(font_list_t names, const char *attributes);
const struct glyph *font_glyph_for_wc(struct font *font, wchar_t wc);
void font_destroy(struct font *font);