From 571eba450b3ac74f18fd4b2588c39d340bdc265a Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 29 Mar 2024 07:55:00 +0000 Subject: [PATCH] Fontlab avar fix --- src/babelfont/convertors/fontlab.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/babelfont/convertors/fontlab.py b/src/babelfont/convertors/fontlab.py index 28a7964..06da85c 100644 --- a/src/babelfont/convertors/fontlab.py +++ b/src/babelfont/convertors/fontlab.py @@ -24,7 +24,7 @@ def _load(self): def_loc = default.location for axis in self.font.axes: if axis.tag in default.location: - axis.default = def_loc[axis.tag] + axis.default = axis.designspace_to_userspace(def_loc[axis.tag]) assert self.font.default_master for g in self.fontlab.get("glyphs", []): glyph = self._load_thing(g, self.glyph_loader) @@ -181,10 +181,7 @@ def _load_node(self, input_): "kerning": ("kerning", _load_kerning), "location": ( "location", - lambda s, x: { - s.axis_name_map[k].tag: s.axis_name_map[k].map_backward(v) - for k, v in x.items() - }, + lambda s, x: {s.axis_name_map[k].tag: v for k, v in x.items()}, ), }, )