Erik
a6325c7988
check if a glyph is available in a master before asking for it.
...
Note: this does not guarantee a smooth result with the glyph missing. But at least it should not crash.
2016-11-30 22:37:58 +01:00
Erik
e41b74ca42
A bit restructured:
...
- mutators for info, kerning and glyphs are lazily constructed. Only make them if they're asked for.
- getInfoMutator() makes / returns info mutator.
- getKerningMutator() makes / returns kerning mutator
- getGlyphMutator() makes / returns glyph mutator
- loadFonts attempts to load the master UFOs and determine the defautl font by looking for the copyInfo flag, or if that is not found, by using mutator's findBias. Will warn if there is a conflct, but the copyInfo flag is leading.
- makeInstance() returns a font object for the asked location. You can decide to save it or not elsewher.
- generateUFO() makes UFOs on disk for all defined instances.
Still largely untested. Note: this requires an updated mutatorMath.
2016-11-30 17:48:05 +01:00
Erik
3d15d68270
Set the ufoVersion
2016-11-30 16:52:51 +01:00
Erik
3604f6f2a3
Caused problem.
2016-11-30 16:47:56 +01:00
Erik
853500ecbd
Keep the fontMath import compatible with its ufo2 branch.
2016-11-30 16:38:13 +01:00
Erik
bc7ef7fac5
Remove some prints
...
Fix copyinfo.
2016-11-30 15:50:19 +01:00
Erik
0e51f99f37
First commit for DesignSpaceProcessor is a subclass of DesignSpaceDocument.
...
- aims to do work the same way as mutatorMath.ufo.document
- generate all instances as UFO
- handle glyph masters, info, kerning, lib
More testing is needed.
2016-11-30 14:45:41 +01:00
Erik van Blokland
baac25990d
Merge pull request #2 from miguelsousa/patch-1
...
typo
2016-11-28 23:06:33 +01:00
Miguel Sousa
962a16fafa
typo
2016-11-28 14:00:32 -08:00
Erik
a854b170b6
- normalise the glyph instance location.
...
- normalise the glyph masters' location.
2016-11-28 22:29:14 +01:00
Erik
d1da75d3e3
Normalise the axis.map outputValues.
2016-11-28 17:18:36 +01:00
Erik
1b6ae36bab
Initial commit for a normalize() method.
...
- instance locations
- source locations
- axis extremes and default values.
todo:
axis.map values.
2016-11-28 17:12:46 +01:00
Erik
324f6aa685
Add optional names, muted names.
2016-11-27 14:21:35 +01:00
Erik
a5d9e5a752
Remove initial attribute from axis example.
2016-11-27 14:13:01 +01:00
Erik
09f3c5b190
Merge branch 'master' of https://github.com/LettError/designSpaceDocument
2016-11-27 14:10:16 +01:00
Erik
dd63c50557
Adds scripting examples for instance glyph masters, axis mapping and label names.
2016-11-27 14:10:10 +01:00
Erik van Blokland
474e5d621f
Update README.md
2016-11-27 13:43:33 +01:00
Erik
43bdd74cda
Such a typo.
2016-11-26 15:31:27 +01:00
Erik
55efbaf322
Read me.
2016-11-26 14:58:53 +01:00
Erik
448dd36973
Add an example on scripting with designSpaceDocument.
2016-11-26 14:45:56 +01:00
Erik
9abd4beec1
Convenience method that returns font objects for all the existing sources in the document. Defaults to defcon font object, but you can BYO.
2016-11-22 22:47:34 +01:00
Erik
5174dfb238
Tweaks in the read me.
2016-11-20 17:46:11 +01:00
Erik
733c4ea755
Smaller check.
2016-11-20 15:48:22 +01:00
Erik
079771dd76
Merge branch 'master' of https://github.com/LettError/designSpaceDocument
...
# Conflicts:
# Lib/designSpaceDocument/__init__.py
2016-11-20 10:14:25 +01:00
Erik
8a0ad4bac8
- changed axis "labelName" element name to lowercase.
...
- actually also read the labelnames.
- added tests for axis data roundttrip
2016-11-20 10:05:55 +01:00
Erik van Blokland
fff6760d3e
Merge pull request #1 from moyogo/patch1
...
Minor: whitespace, gitignore and py23 (print function and unicode_literals)
2016-11-18 11:23:38 +01:00
Denis Moyogo Jacquerye
90b2171ef2
gitignore: .DS_Store, __pycache__, *.py[co] and .cache
2016-11-18 10:08:21 +00:00
Denis Moyogo Jacquerye
050f5731b2
py23: unicode_literals
2016-11-15 20:17:57 +00:00
Denis Moyogo Jacquerye
a62918cb72
py23: print function
2016-11-15 20:16:48 +00:00
Denis Moyogo Jacquerye
6770d6a02f
whitespace
2016-11-15 20:15:04 +00:00
Erik van Blokland
947e524a74
Update README.md
2016-11-15 16:35:01 +01:00
Erik van Blokland
e348a06e82
Update README.md
2016-11-15 16:27:46 +01:00
Erik van Blokland
3e8175569d
Update README.md
2016-11-15 14:29:14 +01:00
Erik van Blokland
1bd59c3ef6
Update README.md
2016-11-15 14:25:19 +01:00
Erik
41f5cd7e5d
more things to ignore.
2016-11-15 13:47:48 +01:00
Erik
2fbdd37362
Initial commit
...
- independent reader / writer object for designspace documents.
- imports and exports easy to subclass objects for instance, source and axis data.
- roundtrips
- intended to be compatible with use in MutatorMath, Superpolatpor and varlib.
2016-11-15 13:27:39 +01:00