From de5966fb0e009873cf9dc7f700496fd1683deb49 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 26 Apr 2020 18:03:57 +0200 Subject: Store font count in context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libskrift_create_context.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3-70-g09d2