font: populate glyph cache (ASCII characters only) when instantiating font

This commit is contained in:
Daniel Eklöf 2019-07-28 21:03:38 +02:00
parent 9e57ba2108
commit fe882bddba
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 44 additions and 82 deletions

1
font.h
View file

@ -6,3 +6,4 @@
bool font_from_name(const char *name, struct font *result);
bool font_glyph_for_utf8(
const struct font *font, const char *utf8, struct glyph *glyph);
void font_destroy(struct font *font);