[truetype] Fix metrics of B/W hinting in v40 mode.

Phantom points are now saved outside v40 backwards compatibility
mode.  This fixes the jumping glyphs when switching between v35 and
v40 monochrome mode.

* src/truetype/ttgload.c (TT_Hint_Glyph): Fix inversed bool logic.
This commit is contained in:
Nikolaus Waxweiler 2017-08-04 08:25:31 +02:00 committed by Werner Lemberg
parent 7f44c2db24
commit 24e256ab00
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2017-08-03 Nikolaus Waxweiler <madigens@gmail.com>
[truetype] Fix metrics of B/W hinting in v40 mode.
Phantom points are now saved outside v40 backwards compatibility
mode. This fixes the jumping glyphs when switching between v35 and
v40 monochrome mode.
* src/truetype/ttgload.c (TT_Hint_Glyph): Fix inversed bool logic.
2017-08-03 Nikolaus Waxweiler <madigens@gmail.com>
[truetype] Do not set any ClearType flags in v40 monochrome mode.

View File

@ -825,7 +825,7 @@
/* compatibility mode, where no movement on the x axis means no reason */
/* to change bearings or advance widths. */
if ( !( driver->interpreter_version == TT_INTERPRETER_VERSION_40 &&
!loader->exec->backward_compatibility ) )
loader->exec->backward_compatibility ) )
{
#endif
loader->pp1 = zone->cur[zone->n_points - 4];