Closed LettError closed 7 years ago
I think even if changes are made to an instance (e.g. axis position), the pre-defined file name should not change.
Case 1:
sounds perfect
Case 2:
I think in that case, it should just default to your standard naming and/or path assignment. Ideally, that path would be obvious & editable.
Case 3:
Everything default. Sounds good.
The big change would be: – keeping custom paths if they exist (very important) – allowing to define custom paths in the Designspace Editor (nice-to-have, but less important if they stick after editing the XML)
https://github.com/LettError/designSpaceDocument/commit/22ce159ecd5e06be8c3b7e04b5ebac70e7fa7aae
If no changes are made to an instance, the filename attribute should not change when writing it back to file.
<source familyname="MasterFamilyName" filename="../Roman/Regular/font.ufo" name="master.ufo1" stylename="MasterStyleNameOne">
Case 1: Existing document, existing instance:
Case 2: Existing document, new instance:
This is a tricky one: should it look at the existing instances and make a guess? Or follow the pattern for new instances?
Case 3: New document, new instance:
The instanceDescriptors have no idea of the filename or preferred path. So: create a path name out of the preferred instance folder name from the preferences + familyName + instanceName + ufo extension.
Expected editor behaviour: