aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_free_context.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-04-26 17:53:56 +0200
committerMattias Andrée <maandree@kth.se>2020-04-26 17:53:56 +0200
commit649165143dad441df98477feb89f48caeef34914 (patch)
treeff4e17224d5542cde39d6bb277e1c4d28e1b85a5 /libskrift_free_context.c
parentUse 32-bit integer for rendering flags (diff)
downloadlibskrift-649165143dad441df98477feb89f48caeef34914.tar.gz
libskrift-649165143dad441df98477feb89f48caeef34914.tar.bz2
libskrift-649165143dad441df98477feb89f48caeef34914.tar.xz
Add autohinting and autokerning renders flags and prepare for fallback fonts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libskrift_free_context.c')
-rw-r--r--libskrift_free_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libskrift_free_context.c b/libskrift_free_context.c
index 2375c05..68ac14d 100644
--- a/libskrift_free_context.c
+++ b/libskrift_free_context.c
@@ -5,7 +5,8 @@ void
libskrift_free_context(LIBSKRIFT_CONTEXT *ctx)
{
if (ctx) {
- libskrift_close_font(ctx->font);
+ while (ctx->nfonts--)
+ libskrift_close_font(ctx->fonts[ctx->nfonts]);
free(ctx);
}
}