6 Commits

Author SHA1 Message Date
Cosimo Lupo
b627a778bf
Don't stop at first incompatibilty, log errors, raise at the end
Based on Miguel Sousa's original PR and the following discussion:
https://github.com/googlei18n/cu2qu/pull/114

Instead of raising an error at the first incompatible glyph, we
let it continue (keeping the original contours unmodified when
that happens), and use logging to print error messages.

A new `IncompatibleFontsError` exception is raised at the end of
`fonts_to_quadratic` if any glyph has incompatible number or types
of segments. The exception instance has a `glyph_errors` attribute
(dict) which collects all the individual IncompatibleGlyphsError
keyed by glyph name.
2018-01-18 13:21:08 +00:00
Cosimo Lupo
0d00796e01 ufo_test: add tests for ufo.py module
100 % coverage.. yay! :)
2017-10-31 19:20:24 +00:00
Cosimo Lupo
3125f071c7 pens_test: capture deprecation warning 2017-10-31 18:18:59 +00:00
Cosimo Lupo
a414079f1a tests/data: add RobotoSubset-Bold.ufo
Will be used for testing fonts_to_quadratic
2017-10-31 14:11:49 +00:00
Cosimo Lupo
82084874c5 Upgrade RobotoSubset-Regular.ufo to UFO 3 2017-10-31 14:10:40 +00:00
Cosimo Lupo
9be3901795 move Lib/cu2qu/test to tests/ folder
There is no need to install the test suite with the package.
Let's put it outside like it's recommended by pytest.
2017-10-31 12:58:09 +00:00