58509f
From 24e256ab005c68a3894845ef3b7764338f9442a4 Mon Sep 17 00:00:00 2001
58509f
From: Nikolaus Waxweiler <madigens@gmail.com>
58509f
Date: Fri, 4 Aug 2017 08:25:31 +0200
58509f
Subject: [truetype] Fix metrics of B/W hinting in v40 mode.
58509f
58509f
Phantom points are now saved outside v40 backwards compatibility
58509f
mode.  This fixes the jumping glyphs when switching between v35 and
58509f
v40 monochrome mode.
58509f
58509f
* src/truetype/ttgload.c (TT_Hint_Glyph): Fix inversed bool logic.
58509f
58509f
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
58509f
index 086ebca52..bfda76175 100644
58509f
--- a/src/truetype/ttgload.c
58509f
+++ b/src/truetype/ttgload.c
58509f
@@ -825,7 +825,7 @@
58509f
     /* compatibility mode, where no movement on the x axis means no reason */
58509f
     /* to change bearings or advance widths.                               */
58509f
     if ( !( driver->interpreter_version == TT_INTERPRETER_VERSION_40 &&
58509f
-            !loader->exec->backward_compatibility ) )
58509f
+            loader->exec->backward_compatibility ) )
58509f
     {
58509f
 #endif
58509f
       loader->pp1 = zone->cur[zone->n_points - 4];