From 59e04e42312293c30714a666c4479e209aec3c0e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Nov 2018 00:25:48 -0500 Subject: [PATCH] [kern/kerx] Fix cursive joining MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested with Waseem TTC: $ hb-shape Waseem.ttc جحخج [F1Jeem_R2=3@0,180+479|M1Khah_L2_R2=2@0,682+403|M1Hah_L2_R2=1@0,1184+403|I1Jeem_L2=0@0,1184+744] --- src/hb-aat-layout-kerx-table.hh | 2 ++ src/hb-ot-kern-table.hh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh index efbe7ed3a..6f63aa408 100644 --- a/src/hb-aat-layout-kerx-table.hh +++ b/src/hb-aat-layout-kerx-table.hh @@ -284,6 +284,8 @@ struct KerxSubTableFormat1 } depth = 0; } + else + buffer->pos[buffer->idx].y_offset += c->font->em_scale_y (crossOffset); return true; } diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh index ec7ce929f..b8006005f 100644 --- a/src/hb-ot-kern-table.hh +++ b/src/hb-ot-kern-table.hh @@ -334,6 +334,8 @@ struct KernSubTableFormat1 } depth = 0; } + else + buffer->pos[buffer->idx].y_offset += c->font->em_scale_y (crossOffset); return true; }