* 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
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index e810ebf..3594132 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;