Merge pull request #632 from miguelsousa/cff-fix
Fix xml-roundtripping of CFF fonts (name-keyed & cid-keyed)
This commit is contained in:
commit
1d809ac92f
@ -545,10 +545,13 @@ class CharStrings(object):
|
||||
index = self.charStrings[name]
|
||||
return self.charStringsIndex.getItemAndSelector(index)
|
||||
else:
|
||||
if hasattr(self, 'fdArray'):
|
||||
if hasattr(self, 'fdSelect'):
|
||||
sel = self.fdSelect[index] # index is not defined at this point. Read R. ?
|
||||
sel = self.charStrings[name].fdSelectIndex
|
||||
else:
|
||||
raise KeyError("fdSelect array not yet defined.")
|
||||
else:
|
||||
sel = None
|
||||
return self.charStrings[name], sel
|
||||
|
||||
def toXML(self, xmlWriter, progress):
|
||||
|
Loading…
x
Reference in New Issue
Block a user