* src/base/ftobjs.c (FT_Load_Glyph): Loosen auto-hinting constraints.

Fixes issue #1320.
This commit is contained in:
Vítor Ramos
2025-05-25 12:15:11 -03:00
committed by Werner Lemberg
parent d629c8bffa
commit 202297eb5c

View File

@@ -994,8 +994,7 @@
/* the check for `num_locations' assures that we actually */
/* test for instructions in a TTF and not in a CFF-based OTF */
/* */
/* since `maxSizeOfInstructions' might be unreliable, we */
/* check the size of the `fpgm' and `prep' tables, too -- */
/* we check the size of the `fpgm' and `prep' tables, too -- */
/* the assumption is that there don't exist real TTFs where */
/* both `fpgm' and `prep' tables are missing */
if ( ( mode == FT_RENDER_MODE_LIGHT &&
@@ -1003,9 +1002,8 @@
!is_light_type1 ) ) ||
( FT_IS_SFNT( face ) &&
ttface->num_locations &&
ttface->max_profile.maxSizeOfInstructions == 0 &&
ttface->font_program_size == 0 &&
ttface->cvt_program_size == 0 ) )
ttface->cvt_program_size <= 7 ) )
autohint = TRUE;
}
}