Commit c44e003e authored by Nikolaus Waxweiler's avatar Nikolaus Waxweiler

(Amend last commit: shorten code)

parent 464d7aa2
Pipeline #72459 passed with stage
in 2 minutes and 18 seconds
......@@ -66,13 +66,11 @@ class Instantiator:
glyph_names: Set[str] = set()
for source in designspace.sources:
if source.font is not None:
glyph_names.update(source.font.keys())
else:
if source.font is None:
if not Path(source.path).exists():
raise ValueError(f"Source at path '{source.path}' not found.")
source.font = ufoLib2.Font.open(source.path, lazy=False)
glyph_names.update(source.font.keys())
glyph_names.update(source.font.keys())
# Construct Variators
axis_bounds: Dict[str, Tuple[float, float, float]] = {}
......
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