LettError / designSpaceRoboFontExtension

A RoboFont extension for creating and editing designspace documents.
MIT License
30 stars 6 forks source link

Respect instance filepaths in the document #3

Closed LettError closed 7 years ago

LettError commented 7 years ago

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:

frankrolf commented 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)

LettError commented 7 years ago

https://github.com/LettError/designSpaceDocument/commit/22ce159ecd5e06be8c3b7e04b5ebac70e7fa7aae