diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-28 19:03:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-28 19:03:38 +0000 |
| commit | fe882bddbab2b3c75220976ba01cc998773fdfa5 (patch) | |
| tree | af15d9b85202230687a94769c59a6b517ac112f8 /main.c | |
| parent | font: add font_glyph_for_utf8() (diff) | |
font: populate glyph cache (ASCII characters only) when instantiating font
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -896,12 +896,8 @@ out: free(term.window_title); tll_free_and_free(term.window_title_stack, free); - for (size_t i = 0; i < sizeof(term.fonts) / sizeof(term.fonts[0]); i++) { - struct font *f = &term.fonts[i]; - - if (f->face != NULL) - FT_Done_Face(f->face); - } + for (size_t i = 0; i < sizeof(term.fonts) / sizeof(term.fonts[0]); i++) + font_destroy(&term.fonts[i]); if (term.flash.fd != -1) close(term.flash.fd); @@ -921,4 +917,5 @@ out: cairo_debug_reset_static_data(); return ret; + } |
