summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/fontbuild/Build.py2
-rw-r--r--scripts/lib/fontbuild/mix.py7
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py
index 6ed91c3..cc858d3 100644
--- a/scripts/lib/fontbuild/Build.py
+++ b/scripts/lib/fontbuild/Build.py
@@ -102,7 +102,7 @@ class FontProject:
if (g.name in self.lessItalic):
italicizeGlyph(g, 9, stemWidth=stemWidth)
- else:
+ elif g.name != ".notdef":
italicizeGlyph(g, 10, stemWidth=stemWidth)
g.RemoveOverlap()
g.width += 10
diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py
index 86bf4ed..06c62dc 100644
--- a/scripts/lib/fontbuild/mix.py
+++ b/scripts/lib/fontbuild/mix.py
@@ -228,6 +228,13 @@ class Master:
def openFont(self, path, overlayPath=None):
fl.Open(path,True)
self.ifont = fl.ifont
+ for g in fl.font.glyphs:
+ size = len(g)
+ csize = len(g.components)
+ if (size > 0 and csize > 0):
+ g.Decompose()
+
+ self.ifont = fl.ifont
self.font = fl.font
if overlayPath != None:
fl.Open(overlayPath,True)