summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmisc/fontbuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/fontbuild b/misc/fontbuild
index 957358680..cb802c655 100755
--- a/misc/fontbuild
+++ b/misc/fontbuild
@@ -499,6 +499,16 @@ class Main(object):
source.font.lib.clear()
source.font.lib.update(lib)
+ # remove all but the primary (default) layer
+ layers = source.font.layers
+ defaultLayer = layers.defaultLayer
+ delLayerNames = set()
+ for layer in layers:
+ if layer != defaultLayer:
+ delLayerNames.add(layer.name)
+ for layerName in delLayerNames:
+ del layers[layerName]
+
# clear anchors
for g in source.font:
g.clearAnchors()