diff options
Diffstat (limited to 'libskrift_draw_text.c')
-rw-r--r-- | libskrift_draw_text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libskrift_draw_text.c b/libskrift_draw_text.c index 95fd523..05f278c 100644 --- a/libskrift_draw_text.c +++ b/libskrift_draw_text.c @@ -17,8 +17,8 @@ libskrift_draw_text(LIBSKRIFT_CONTEXT *ctx, const char *text, const struct libsk return -1; r = libskrift_apply_glyph(ctx, glyph, colour, x, y, image); - xpos += glyph->advance * ctx->x_advancement; - ypos += glyph->advance * ctx->y_advancement; + xpos += (glyph->advance + ctx->rendering.interletter_spacing) * ctx->x_advancement; + ypos += (glyph->advance + ctx->rendering.interletter_spacing) * ctx->y_advancement; free(glyph); if (r) return -1; |