aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_apply_glyph.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-08-05 21:01:19 +0200
committerMattias Andrée <maandree@kth.se>2021-08-05 21:01:19 +0200
commitceba3198ea95f78c4950acf18bdb432275404810 (patch)
tree0be2c82c24a5554b50c5c2e1e84d3ecd05178c49 /libskrift_apply_glyph.c
parentImprovements for character transformations (diff)
downloadlibskrift-ceba3198ea95f78c4950acf18bdb432275404810.tar.gz
libskrift-ceba3198ea95f78c4950acf18bdb432275404810.tar.bz2
libskrift-ceba3198ea95f78c4950acf18bdb432275404810.tar.xz
Add support for horizontal blanking interval in output images
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libskrift_apply_glyph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libskrift_apply_glyph.c b/libskrift_apply_glyph.c
index 3fc3fc5..6e61732 100644
--- a/libskrift_apply_glyph.c
+++ b/libskrift_apply_glyph.c
@@ -99,7 +99,7 @@ libskrift_apply_glyph(LIBSKRIFT_CONTEXT *ctx, const struct libskrift_glyph *glyp
endc = (uint16_t)((int16_t)x2 - sx1);
endr = (uint16_t)((int16_t)y2 - sy1);
- img_linesize = (size_t)image->width * psize;
+ img_linesize = (size_t)image->width * psize + image->hblanking;
img_start += (size_t)y1 * img_linesize;
img_start += (size_t)x1 * psize;