Cosimo Lupo
5f1844165e
varLib.designspace: add a deprecation warning
2018-09-11 18:02:49 +02:00
Behdad Esfahbod
5a21b60ed9
[varLib.designspace] Add main functionality
...
Loads designspace file from commandline and pretty-prints it.
2017-04-12 21:54:43 -07:00
Cosimo Lupo
ee9f2bf24a
[designspace] clarify that designspace items are optional in docstring
2017-02-27 18:12:31 +00:00
Cosimo Lupo
66c6662572
[designspace] refactor
...
- remove unused import
- use snake_case instead of camelCase
- add two empty lines between module-level definitions
- rename 'elt' variable to 'element'
- don't make extra dict copy in _load_axis
2017-02-27 16:59:35 +00:00
Cosimo Lupo
ba44e64108
[designspace] rename 'masters' to 'sources', like in original .designspace document
...
I don't see why our parser should call this element differently than its official name.
2017-02-27 16:21:35 +00:00
Cosimo Lupo
51f4302ec8
[designspace] if elements not defined, don't set key/value pair in returned dict
...
According to https://github.com/LettError/designSpaceDocument
> Not all values might be required by all applications.
So if any of 'elements', 'sources' or 'instances' is missing, the dictionary
returned by designspace.load will not contain those keys.
2017-02-27 16:17:13 +00:00
Miguel Sousa
f061231049
[varLib] Make designspace.load() return a dictionary instead of a tuple
2017-02-26 07:49:44 -08:00
Miguel Sousa
0dd2227e49
[varLib] Make parsing of ‘axes’ element more robust
2017-02-25 20:45:47 -08:00
ReadRoberts
33177bf65b
If the design space file uses an <axes> element, use this to define the axis map, and preserve the axis order.
2017-02-22 21:22:34 -08:00
Behdad Esfahbod
8e675db59b
[varLib] Fix loading of designspace instances
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
4512a162b6
[varLib] Move designspace loading code into its own module
2016-09-27 19:49:41 +02:00