initialize styleStrings with empty string instead of None's: this allows certain Apple fonts to be handled correctly.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@120 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
0f675860ce
commit
dccbd3154b
@ -380,7 +380,7 @@ class FontFamily:
|
||||
for style, split in items:
|
||||
if len(split) > 1:
|
||||
numindices = numindices + 1
|
||||
styleStrings = [self.ffFamilyName] + numindices * [None] + nameparts
|
||||
styleStrings = [self.ffFamilyName] + numindices * [""] + nameparts
|
||||
# XXX the next bit goes wrong for MM fonts.
|
||||
for style, split in items:
|
||||
if len(split) == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user