shithub: freetype+ttf2subf

Download patch

ref: ff269528ca0295c14efe4c0e17c092b1c793f0e9
parent: 05c1421f8d1d0db83819be975c5a149ae41885da
author: Behdad Esfahbod <[email protected]>
date: Sat Jul 20 04:02:39 EDT 2013

[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'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-07-20  Behdad Esfahbod  <[email protected]>
+
+	[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  <[email protected]>
 
 	[autofit] Fix segment classification for blue zones.
--- 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;