From 8d0f797139e853d13cb2383d541c2e691d9dbae3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Nov 2018 00:04:40 -0500 Subject: [PATCH] [kern/kerx] Fix "reset" magic value --- src/hb-aat-layout-kerx-table.hh | 2 +- src/hb-ot-kern-table.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh index 93d3ffb7f..efbe7ed3a 100644 --- a/src/hb-aat-layout-kerx-table.hh +++ b/src/hb-aat-layout-kerx-table.hh @@ -238,7 +238,7 @@ struct KerxSubTableFormat1 /* The following flag is undocumented in the spec, but described * in the 'kern' table example. */ - if (v == 0x8000) + if (v == -0x8000) { crossOffset = 0; v = 0; diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh index 28bca8439..ec7ce929f 100644 --- a/src/hb-ot-kern-table.hh +++ b/src/hb-ot-kern-table.hh @@ -287,7 +287,7 @@ struct KernSubTableFormat1 /* The following flag is undocumented in the spec, but described * in the example. */ - if (v == 0x8000) + if (v == -0x8000) { crossOffset = 0; v = 0;