shithub: freetype+ttf2subf

Download patch

ref: 8772845cdb3321b17cc383152337c1b047aca30b
parent: fc3a316441d470f015e18f93e54c2dc8e4d6e0c2
author: David Turner <[email protected]>
date: Wed Dec 19 09:59:23 EST 2001

* src/sfnt/sfobjs.c (SFNT_Load_Face): make the "post" and "name"
        tables optional to load PCL fonts properly

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-12-19  David Turner  <[email protected]>
 
+        * 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
         shifting bug in the monochrome renderer.
 
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -298,10 +298,12 @@
 
     /* load other tables */
     if ( LOAD_( max_profile ) ||
-         LOAD_( charmaps )    ||
-         LOAD_( names )       ||
-         LOAD_( psnames )     )
+         LOAD_( charmaps )    )
       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 */
     /* sbit font file                                                 */