From 89eba38e62981d7a6f0dd4995c603a23e00c113d Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 8 Sep 2025 10:43:35 -0400 Subject: [PATCH] * src/truetype/ttinterp.c (TT_Run_Context): Reset IUP tracking bits. Fixes #1353. --- src/truetype/ttinterp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 378342bbb..bf440936c 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -7521,6 +7521,12 @@ exec->func_round = (TT_Round_Func)Round_To_Grid; Compute_Funcs( exec ); +#ifdef TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL + /* Reset IUP tracking bits in the backward compatibility mode. */ + /* See `ttinterp.h' for details. */ + exc->backward_compatibility &= ~0x6; +#endif + /* some glyphs leave something on the stack, */ /* so we clean it before a new execution. */ exec->top = 0;