diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-26 17:53:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-26 17:53:56 +0200 |
commit | 649165143dad441df98477feb89f48caeef34914 (patch) | |
tree | ff4e17224d5542cde39d6bb277e1c4d28e1b85a5 /libskrift_free_context.c | |
parent | Use 32-bit integer for rendering flags (diff) | |
download | libskrift-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.c | 3 |
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); } } |