Skip to content

Commit

Permalink
Merge pull request #1366 from googlefonts/ensure-dense-locations
Browse files Browse the repository at this point in the history
[designspace] Ensure sources use dense locations after adding axes
  • Loading branch information
justvanrossum authored May 17, 2024
2 parents 9e0bbe0 + f4148f4 commit 35dca9f
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 35dca9f

Please sign in to comment.