summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-10-09 10:47:32 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-10-09 10:47:32 +0200
commitd13fdbbfc6ec430333e517b9646efa47b911c2b8 (patch)
tree22b6a0c7e8fe78a8cf54ca58c61154a2b9a3bd46
parente47a052277e6c5b2c02df4e4c371a3bdd152513a (diff)
done face on each memory face instance
-rw-r--r--src/vkvg_fonts.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vkvg_fonts.c b/src/vkvg_fonts.c
index 0401a1c..01d9c20 100644
--- a/src/vkvg_fonts.c
+++ b/src/vkvg_fonts.c
@@ -152,18 +152,18 @@ void _font_face_destroy (VkvgFont font) {
array_destroy_uint64_t(&face->queryHashes);
array_del_FontFace(&face->fontBuffer->faces, face);
+#ifdef VKVG_USE_HARFBUZZ
+ hb_font_destroy(face->hb_font);
+#endif
+
#ifdef VKVG_USE_FREETYPE
mtx_destroy(&face->mutex);
- if (face->fontBuffer->faces.count == 0) {
- LOG(VKVG_LOG_FONT, "\tDone face: %s\n", face->face->family_name);
-#ifdef VKVG_USE_HARFBUZZ
- hb_font_destroy(face->hb_font);
+ FT_Done_Face(face->face);
#endif
- FT_Done_Face(face->face);
+ if (face->fontBuffer->faces.count == 0) {
_font_buffer_destroy(font->dev->fontCache, face->fontBuffer);
}
-#endif
free(face);
}
void _font_cache_destroy(VkvgDevice dev) {