aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_create_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'libskrift_create_context.c')
-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;