shithub: freetype+ttf2subf

Download patch

ref: 14d340ce2e04052a4fa1837c3cb9df6e57c44ec4
parent: f8bc2d3ca6ba04cbbc1e0f09dd4c8e04b6877ccb
author: David Turner <[email protected]>
date: Fri Mar 17 18:33:07 EST 2000

fixed a _really_ stupid bugs in the TrueType Collection
loading !!

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -217,8 +217,8 @@
         goto Exit;
         
       /* seek to the appropriate TrueType file, then read tag */
-      if ( FILE_Skip( face->ttc_header.TableDirectory[faceIndex] - 12 ) ||
-           READ_Long( *format_tag )                                     )
+      if ( FILE_Seek( face->ttc_header.TableDirectory[faceIndex] ) ||
+           READ_Long( *format_tag )                                )
         goto Exit;
     }