break before adding the data..
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@297 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
da0d805d26
commit
05a16f2310
@ -143,9 +143,9 @@ def readLWFN(path, onlyHeader=0):
|
||||
if ord(res.data[1]) <> 0:
|
||||
raise T1Error, 'corrupt LWFN file'
|
||||
if code in [1, 2]:
|
||||
data.append(res.data[2:])
|
||||
if onlyHeader and code == 2:
|
||||
break
|
||||
data.append(res.data[2:])
|
||||
elif code in [3, 5]:
|
||||
break
|
||||
elif code == 4:
|
||||
|
Loading…
x
Reference in New Issue
Block a user