8 Commits

Author SHA1 Message Date
Erik
e3cd7dd48b - check if a document has a default master define, repair if necessary.
- check if a document has axes defined, repair if necessary.
2016-12-02 12:22:07 +01:00
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