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;