diff options
Diffstat (limited to 'misc/pylib/fontbuild/mix.pyx')
-rw-r--r-- | misc/pylib/fontbuild/mix.pyx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/misc/pylib/fontbuild/mix.pyx b/misc/pylib/fontbuild/mix.pyx index b47a38796..7034a189d 100644 --- a/misc/pylib/fontbuild/mix.pyx +++ b/misc/pylib/fontbuild/mix.pyx @@ -284,17 +284,18 @@ class Mix: ffont.kerning = self.mixKerns() return ffont - def generateFont(self, baseFont): + def generateFont(self, baseFont, ignoreGlyphs=None): newFont = baseFont.copy() #self.mixStems(newFont) todo _ fix stems code for g in newFont: - gF = self.mixGlyphs(g.name) - if gF == None: - g.mark = True - elif isinstance(gF, RGlyph): - newFont[g.name] = gF.copy() - else: - gF.copyToGlyph(g) + if not ignoreGlyphs or g.name not in ignoreGlyphs: + gF = self.mixGlyphs(g.name) + if gF == None: + g.mark = True + elif isinstance(gF, RGlyph): + newFont[g.name] = gF.copy() + else: + gF.copyToGlyph(g) newFont.kerning.clear() newFont.kerning.update(self.mixKerns() or {}) |