aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-28 19:03:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-28 19:03:38 +0000
commitfe882bddbab2b3c75220976ba01cc998773fdfa5 (patch)
treeaf15d9b85202230687a94769c59a6b517ac112f8 /main.c
parentfont: 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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.c b/main.c
index dfcc28ab..7d0fa355 100644
--- a/main.c
+++ b/main.c
@@ -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;
+
}