fixed problem with private VTT table, found by Peter Bilak

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@522 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2008-02-19 18:49:14 +00:00
parent e307d81d4b
commit 8633195104

View File

@ -26,7 +26,7 @@ class table_T_S_I__1(DefaultTable.DefaultTable):
for i in range(len(indextable.extra_indices)):
extraCode, textLength, textOffset = indextable.extra_indices[i]
if textLength == 0x8000:
if extraName == "fpgm": # this is the last one
if self.extras[extraCode] == "fpgm": # this is the last one
textLength = len(data) - textOffset
else:
textLength = indextable.extra_indices[i+1][1]