ref: fa764cf8687eea54ce7b929eb066f117f51bd6de
parent: b70d8a0ef614e8aa65f973a3799887606223c991
author: Werner Lemberg <[email protected]>
date: Thu Nov 18 08:08:52 EST 2010
[sfnt] Ignore all errors while loading `OS/2' table. Suggested by Johnson Y. Yan <[email protected]>. * src/sfnt/sfobjs.c (sfnt_load_face): Do it.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-18 Werner Lemberg <[email protected]>
+
+ [sfnt] Ignore all errors while loading `OS/2' table.
+ Suggested by Johnson Y. Yan <[email protected]>.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Do it.
+
2010-11-18 Johnson Y. Yan <[email protected]>
[type1] Fix matrix normalization.
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -691,9 +691,7 @@
LOAD_( os2 );
if ( error )
{
- if ( error != SFNT_Err_Table_Missing )
- goto Exit;
-
+ /* we treat the table as missing if there are any errors */
face->os2.version = 0xFFFFU;
}
}