* 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
This commit is contained in:
Alexei Podtelezhnikov 2025-10-16 22:35:53 -04:00
parent 4334f009e7
commit f238830d77

View file

@ -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;