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

View file

@ -223,6 +223,8 @@ struct font {
double position;
double thickness;
} strikeout;
struct glyph cache[256];
};
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };