diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-26 18:03:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-26 18:03:57 +0200 |
commit | de5966fb0e009873cf9dc7f700496fd1683deb49 (patch) | |
tree | 2698e5f7da202c9b552ced6b884922b366cb4375 /libskrift_create_context.c | |
parent | libskrift_merge_glyphs: support any pixel encoding (diff) | |
download | libskrift-de5966fb0e009873cf9dc7f700496fd1683deb49.tar.gz libskrift-de5966fb0e009873cf9dc7f700496fd1683deb49.tar.bz2 libskrift-de5966fb0e009873cf9dc7f700496fd1683deb49.tar.xz |
Store font count in context
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libskrift_create_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libskrift_create_context.c b/libskrift_create_context.c index 4adf179..672a667 100644 --- a/libskrift_create_context.c +++ b/libskrift_create_context.c @@ -41,6 +41,7 @@ libskrift_create_context(LIBSKRIFT_CONTEXT **ctxp, LIBSKRIFT_FONT **fonts, size_ (*ctxp)->schrift_ctx.font = fonts[0]->font; (*ctxp)->schrift_ctx.yScale = height; + (*ctxp)->nfonts = nfonts; for (i = 0; i < nfonts; i++) { (*ctxp)->fonts[i] = fonts[i]; fonts[i]->refcount += 1; |