summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-24 10:51:30 +0100
committerRobin Watts <robin.watts@artifex.com>2016-03-29 13:40:18 +0100
commit7f0c59655e837b337e652e48c36453a995e55960 (patch)
tree961bfcdaf6839113d7b2c1ead285e9799d31742c /source/html
parent93f96d651c978b2a5fac0978b88403720b5a149d (diff)
downloadmupdf-7f0c59655e837b337e652e48c36453a995e55960.tar.xz
epub: Fix sign inversion in harfbuzz y-offsets.
Combining marks were being offset in the wrong direction vertically.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 08a0fb9d..d102d87a 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1289,7 +1289,7 @@ static void draw_flow_box(fz_context *ctx, fz_html *box, float page_top, float p
hb_position_t x_off = *(hb_position_t *)px;
hb_position_t y_off = *(hb_position_t *)py;
float fx_off = x + (lx + x_off) * node_scale;
- float fy_off = x + (lx + y_off) * node_scale;
+ float fy_off = x + (lx - y_off) * node_scale;
#ifdef DEBUG_HARFBUZZ
hb_glyph_info_t *g = &walker.glyph_info[gp];