aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-04-26 18:03:57 +0200
committerMattias Andrée <maandree@kth.se>2020-04-26 18:03:57 +0200
commitde5966fb0e009873cf9dc7f700496fd1683deb49 (patch)
tree2698e5f7da202c9b552ced6b884922b366cb4375
parentlibskrift_merge_glyphs: support any pixel encoding (diff)
downloadlibskrift-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>
-rw-r--r--libskrift_create_context.c1
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;