Skip to content

Commit

Permalink
Fontlab avar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Mar 29, 2024
1 parent 4c8db69 commit 571eba4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/babelfont/convertors/fontlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()},
),
},
)
Expand Down

0 comments on commit 571eba4

Please sign in to comment.