Skip to content

Commit

Permalink
Ensure sources use dense locations after adding axes
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed May 17, 2024
1 parent 0078996 commit f4148f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fontra/backends/designspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ async def putAxes(self, axes):
outputLocation=mapping.outputLocation,
)

self._writeDesignSpaceDocument()
self.updateAxisInfo()
self._writeDesignSpaceDocument()
self.loadUFOLayers()

async def getSources(self) -> dict[str, FontSource]:
Expand Down Expand Up @@ -777,6 +777,8 @@ async def putCustomData(self, lib):

def _writeDesignSpaceDocument(self):
self.dsDoc.write(self.dsDoc.path)
for source in self.dsDoc.sources:
source.location = {**self.defaultLocation, **source.location}
self.dsDocModTime = os.stat(self.dsDoc.path).st_mtime

async def watchExternalChanges(
Expand Down

0 comments on commit f4148f4

Please sign in to comment.