aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_create_context.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-08-17 17:44:35 +0200
committerMattias Andrée <maandree@kth.se>2021-08-17 17:44:35 +0200
commit6b8fc61b772b394d7a205531b492101c519dc47d (patch)
tree85d441e2de4d57e9432a5d0173aa48c214ebb39c /libskrift_create_context.c
parentm (diff)
downloadlibskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.gz
libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.bz2
libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.xz
Add support for gzip compression and prepare for PSF support
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libskrift_create_context.c')
-rw-r--r--libskrift_create_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libskrift_create_context.c b/libskrift_create_context.c
index a1d01e0..15f8d50 100644
--- a/libskrift_create_context.c
+++ b/libskrift_create_context.c
@@ -8,7 +8,7 @@
#define IMPLEMENTED_FLAGS (LIBSKRIFT_REMOVE_GAMMA |\
LIBSKRIFT_MIRROR_TEXT |\
LIBSKRIFT_MIRROR_CHARS |\
- FORCED_FLAGS) /* libschrift does not add gamma, so not handling is required */
+ FORCED_FLAGS) /* libschrift does not add gamma, so no handling is required */
#define TRANSFORMING_FLAGS (LIBSKRIFT_MIRROR_TEXT |\
LIBSKRIFT_MIRROR_CHARS |\
@@ -75,7 +75,7 @@ libskrift_create_context(LIBSKRIFT_CONTEXT **ctxp, LIBSKRIFT_FONT **fonts, size_
if (!*ctxp)
return -1;
- (*ctxp)->schrift_ctx.font = fonts[0]->font;
+ (*ctxp)->schrift_ctx.font = fonts[0]->font.schrift;
(*ctxp)->schrift_ctx.yScale = height;
(*ctxp)->char_x_advancement = 1;
(*ctxp)->char_y_advancement = 0;