mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
* src/base/ftobjs.c (FT_Load_Glyph): Loosen auto-hinting constraints.
Fixes issue #1320.
This commit is contained in:
committed by
Werner Lemberg
parent
d629c8bffa
commit
202297eb5c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user