Commit 05a386fb authored by Nikolaus Waxweiler's avatar Nikolaus Waxweiler

Add public.skipExportGlyphs

parent 97cf2d23
Pipeline #70650 passed with stage
in 4 minutes and 47 seconds
......@@ -49,6 +49,7 @@ class Instantiator:
info_mutator: "Variator"
kerning_mutator: "Variator"
round_geometry: bool
skip_export_glyphs: List[str]
def from_designspace(
......@@ -109,6 +110,12 @@ class Instantiator:
# The list of glyphs not to export and decompose where used as a component is
# supposed to be taken from the Designspace when a Designspace is used as the
# starting point of the compilation process. It should be exported to all
# instance libs, where the ufo2ft compilation functions will pick it up.
skip_export_glyphs = designspace.lib.get("public.skipExportGlyphs", [])
return cls(
......@@ -119,6 +126,7 @@ class Instantiator:
def generate_instance(
......@@ -154,6 +162,7 @@ class Instantiator:
setattr(, attribute, getattr(self.copy_info, attribute))
for key, value in self.copy_lib.items():
font.lib[key] = value
font.lib["public.skipExportGlyphs"] = self.skip_export_glyphs
for key, value in self.copy_groups.items():
font.groups[key] = value
font.features.text = self.copy_feature_text
......@@ -259,6 +259,23 @@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment