Commit eb1b83dd authored by Graham Asher's avatar Graham Asher
Browse files

FIX for bug reported by Sven Neumann [sven@gimp.org] on the FreeType

development forum: "If FT_CONFIG_OPTION_INCREMENTAL is undefined
(this is the default), the TrueType loader crashes in line 852 of
src/truetype/ttgload.c when it tries to access face->glyph_locations.".
parent b0549240
......@@ -202,9 +202,14 @@
if ( !face->root.incremental_interface )
error = TT_Load_Locations( face, stream );
if ( !error )
#endif
error = TT_Load_CVT ( face, stream ) ||
TT_Load_Programs ( face, stream );
#else
if ( !error )
error = TT_Load_Locations( face, stream ) ||
TT_Load_CVT ( face, stream ) ||
TT_Load_Programs ( face, stream );
#endif
}
/* initialize standard glyph loading routines */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment