Fix autohinting fallback.
* src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs, ignoring CFF-based OTFs.
This commit is contained in:
parent
4d0586f0da
commit
c9bdfa7e65
|
@ -1,3 +1,10 @@
|
||||||
|
2011-03-06 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
Fix autohinting fallback.
|
||||||
|
|
||||||
|
* src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs,
|
||||||
|
ignoring CFF-based OTFs.
|
||||||
|
|
||||||
2011-02-27 Werner Lemberg <wl@gnu.org>
|
2011-02-27 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Add AF_CONFIG_OPTION_USE_WARPER to control the autofit warper.
|
Add AF_CONFIG_OPTION_USE_WARPER to control the autofit warper.
|
||||||
|
|
|
@ -627,9 +627,12 @@
|
||||||
FT_Render_Mode mode = FT_LOAD_TARGET_MODE( load_flags );
|
FT_Render_Mode mode = FT_LOAD_TARGET_MODE( load_flags );
|
||||||
|
|
||||||
|
|
||||||
|
/* the check for `num_locations' assures that we actually */
|
||||||
|
/* test for instructions in a TTF and not in a CFF-based OTF */
|
||||||
if ( mode == FT_RENDER_MODE_LIGHT ||
|
if ( mode == FT_RENDER_MODE_LIGHT ||
|
||||||
face->internal->ignore_unpatented_hinter ||
|
face->internal->ignore_unpatented_hinter ||
|
||||||
( FT_IS_SFNT( face ) &&
|
( FT_IS_SFNT( face ) &&
|
||||||
|
ttface->num_locations &&
|
||||||
ttface->max_profile.maxSizeOfInstructions == 0 ) )
|
ttface->max_profile.maxSizeOfInstructions == 0 ) )
|
||||||
autohint = TRUE;
|
autohint = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue