diff options
Diffstat (limited to 'scripts/lib/fontbuild/mix.py')
-rw-r--r-- | scripts/lib/fontbuild/mix.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py index 06c62dc..c55512a 100644 --- a/scripts/lib/fontbuild/mix.py +++ b/scripts/lib/fontbuild/mix.py @@ -46,6 +46,7 @@ class FFont: def addDiff(self,b,c): newFont = FFont(self) + for key,g in newFont.glyphs.iteritems(): gB = b.getGlyph(key) gC = c.getGlyph(key) @@ -53,6 +54,7 @@ class FFont: newFont.glyphs[key] = g.addDiff(gB,gC) except: print "Add diff failed for '%s'" %key + return newFont class FGlyph: @@ -250,6 +252,8 @@ class Master: kernlist = [KerningPair(k) for k in oldGlyph.kerning] font.glyphs[glyphIndex] = Glyph(overlayGlyph) font.glyphs[glyphIndex].kerning = kernlist + if 0 == overlayGlyph: + font.glyphs[glyphIndex].width = 0 else: font.glyphs.append(overlayGlyph) fl.UpdateFont(ifont) |