Commit ff269528ca0295c14efe4c0e17c092b1c793f0e9

Behdad Esfahbod 2013-07-20T08:02:39

[sfnt] Fix `sbix' table version handling. * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]: USHORT version numbers are to be considered as `minor'.

diff --git a/ChangeLog b/ChangeLog
index 592ffca..bbc7c9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-07-20  Behdad Esfahbod  <behdad@google.com>
+
+	[sfnt] Fix `sbix' table version handling.
+
+	* src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
+	USHORT version numbers are to be considered as `minor'.
+
 2013-07-19  Werner Lemberg  <wl@gnu.org>
 
 	[autofit] Fix segment classification for blue zones.
diff --git a/src/sfnt/ttsbit.c b/src/sfnt/ttsbit.c
index c147251..74992c5 100644
--- a/src/sfnt/ttsbit.c
+++ b/src/sfnt/ttsbit.c
@@ -141,7 +141,7 @@
 
         FT_FRAME_EXIT();
 
-        if ( version != 1 )
+        if ( version < 1 )
         {
           error = FT_THROW( Unknown_File_Format );
           goto Exit;