Commit 14d340ce2e04052a4fa1837c3cb9df6e57c44ec4

David Turner 2000-03-17T23:33:07

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index c40ec8d..410f5c4 100644
--- 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;
     }