expose onlyHeader keyword arg to generic read() func

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@483 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2005-01-25 19:06:51 +00:00
parent 7afc6b989c
commit 10fd22a989

View File

@ -99,15 +99,15 @@ class T1Font:
# low level T1 data read and write functions
def read(path):
def read(path, onlyHeader=0):
"""reads any Type 1 font file, returns raw data"""
normpath = string.lower(path)
if haveMacSupport:
creator, type = MacOS.GetCreatorAndType(path)
if type == 'LWFN':
return readLWFN(path), 'LWFN'
return readLWFN(path, onlyHeader), 'LWFN'
if normpath[-4:] == '.pfb':
return readPFB(path), 'PFB'
return readPFB(path, onlyHeader), 'PFB'
else:
return readOther(path), 'OTHER'