Add stylename and family attributes to source element
Closed this issue · 8 comments
Some consumers of a .designspace document would like to have stylename and familyname attributes in the source element.
That would be great, yes. Thanks!
Do you need any other support for these fields, or it is enough that they can be present in the source? #
For my use case it's enough if they are in the source, since I'm reading the XML directly. Thanks.
What's the resolution here?
DesignSpaceDocumentWriter.addSource takes familyName and styleName attributes and adds those to source element.
Example from exporttest_basic.designspace:
<source familyname="ExplicitSourceFamilyName" filename="sources/light/LightCondensed.ufo" name="master_1" stylename="ExplicitSourceFamilyName">
One issue: styleName is set to family name: https://github.com/LettError/MutatorMath/blob/master/Lib/mutatorMath/ufo/document.py#L176
😔fixed.