summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2011-03-06 18:35:37 +0100
committerWerner Lemberg <wl@gnu.org>2011-03-06 18:35:37 +0100
commitc9bdfa7e658f42f3faed2b426e3b1251a04938e4 (patch)
tree2b26251928b738c0b4ea5ee1332253479bfa361e /src
parent4d0586f0da9ae5cb453c240d8b7ca71714157b35 (diff)
Fix autohinting fallback.
* src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs, ignoring CFF-based OTFs.
Diffstat (limited to 'src')
-rw-r--r--src/base/ftobjs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 708055f9..219ece4c 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -627,9 +627,12 @@
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 ||
face->internal->ignore_unpatented_hinter ||
( FT_IS_SFNT( face ) &&
+ ttface->num_locations &&
ttface->max_profile.maxSizeOfInstructions == 0 ) )
autohint = TRUE;
}