From f238830d77d7a42427e5fc9401e2955259afc652 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 16 Oct 2025 22:35:53 -0400 Subject: [PATCH] * src/truetype/ttgload.c (tt_loader_init): Reset compatibility. This may fix #1262, credits to Honnesh Ramachandra. https://lists.nongnu.org/archive/html/freetype-devel/2025-10/msg00004.html --- src/truetype/ttgload.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index e810ebfd5..359413246 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -2217,6 +2217,10 @@ exec = size->context; #ifdef TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL + /* reset backward compatibility; note that */ + /* the CVT program always runs without it */ + exec->backward_compatibility = 0; + if ( driver->interpreter_version == TT_INTERPRETER_VERSION_40 ) { grayscale = FALSE; @@ -2283,8 +2287,7 @@ mode != FT_RENDER_MODE_MONO && !FT_IS_TRICKY( glyph->face ) ) exec->backward_compatibility = ( size->GS.instruct_control & 4 ) ^ 4; - else - exec->backward_compatibility = 0; + #endif /* TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL */ loader->exec = exec;