summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-11-06 17:16:04 -0500
committerBehdad Esfahbod <behdad@behdad.org>2018-11-06 17:59:31 -0500
commit215587a5d1f707d1dffa7b08224cd56bb8dfdb56 (patch)
tree0d1b3f88d39a77133e684fc24f8cd4b051b183b0
parent57689a32f9b66978ba72a0d47dee075fa92d6c91 (diff)
downloadharfbuzz-cross-kern.tar.gz
[kern] XXX Negate CrossKerning signcross-kern
Not sure why, but seems to better match GeezaPro Arabic w CoreText. Quite possibly I'm doing something very wrong...
-rw-r--r--src/hb-ot-kern-table.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh
index 30f7091b..c7282a3a 100644
--- a/src/hb-ot-kern-table.hh
+++ b/src/hb-ot-kern-table.hh
@@ -282,7 +282,8 @@ struct KernSubTableFormat1
{
if (crossStream)
{
- crossOffset += v;
+ /* XXX Why negative, not positive?!?! */
+ crossOffset -= v;
buffer->pos[idx].y_offset += c->font->em_scale_y (crossOffset);
}
else