* src/sfnt/sfobjs.c (SFNT_Load_Face): make the "post" and "name"

tables optional to load PCL fonts properly
This commit is contained in:
David Turner 2001-12-19 14:59:23 +00:00
parent fc3a316441
commit 8772845cdb
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2001-12-19 David Turner <david@freetype.org> 2001-12-19 David Turner <david@freetype.org>
* src/sfnt/sfobjs.c (SFNT_Load_Face): make the "post" and "name"
tables optional to load PCL fonts properly
* src/raster/ftrend1.c (ft_raster1_render): fixed a nasty outline * src/raster/ftrend1.c (ft_raster1_render): fixed a nasty outline
shifting bug in the monochrome renderer. shifting bug in the monochrome renderer.

View File

@ -298,10 +298,12 @@
/* load other tables */ /* load other tables */
if ( LOAD_( max_profile ) || if ( LOAD_( max_profile ) ||
LOAD_( charmaps ) || LOAD_( charmaps ) )
LOAD_( names ) ||
LOAD_( psnames ) )
goto Exit; goto Exit;
/* the following tables are optional in PCL fonts, don't check for errors */
(void) LOAD_( names );
(void) LOAD_( psnames );
/* do not load the metrics headers and tables if this is an Apple */ /* do not load the metrics headers and tables if this is an Apple */
/* sbit font file */ /* sbit font file */