Behdad Esfahbod
63c283a3c8
[interpolatable] Remove use of perimeter again
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
c935118072
[interpolatable] Add TeePen
...
Used to combine StatisticsPen and PerimeterPen into one pen for example.
Though, that example to be removed again.
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
d4d12d255c
[interpolatable] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
d748db59cc
[interpolatable] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
03e8f2e461
[interpolatable] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
65e5c257ed
[interpolatable] Remove stale commit and uncomment code
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
f3224d7d34
Move StatisticsPen into fontTools.pens.statisticsPen
2017-02-20 13:19:35 -06:00
Behdad Esfahbod
5cbfaa2792
[symfont] Change GlyphStatistics object into StatisticsPen
...
It's a simple pen now. To be moved to fontTools.pens next.
2017-02-20 13:02:52 -06:00
Behdad Esfahbod
c14aad81f4
[symfont] Rename
2017-02-20 12:46:55 -06:00
Behdad Esfahbod
5132bbe411
[symfont] Remove glyph perimeter from GlyphStatistics
...
It's not technically statistics the same way the other properties are, and
we have a separate pen for it, so remove. Goal is to turn GlyphStatistics
into a pen.
Also remove perimeter from interpolatable.py contour characteristics vector.
Shouldn't be needed, given all the stats we already include.
2017-02-20 12:36:15 -06:00
Behdad Esfahbod
da4b81e9ab
Add momentsPen as generated by symfont:printPen()
...
To be moved to proper place soon.
Using this in interpolatable.py makes the core of the computation over an
order of magnitude faster.
2017-02-20 10:17:07 -06:00
Behdad Esfahbod
c8e68b2f4c
[interpolatable] Report bad contour in case of math error
2017-02-20 10:17:07 -06:00
Behdad Esfahbod
c3b2e533e9
[interpolatable] Minor
2017-02-20 10:17:07 -06:00
Cosimo Lupo
5d6995d317
[Snippets/interpolatable] scipy returns numpy arrays; convert them back to list
2017-01-19 15:39:48 +00:00
Behdad Esfahbod
179b8b5794
[Snippets/interpolatable] Use Hungarian algorithm from munkres or scipy when available
...
Fixes https://github.com/fonttools/fonttools/issues/815
2017-01-19 07:21:08 -08:00
Behdad Esfahbod
4868a631b9
[Snippets/interpolatable] Improve error reporting
...
Also enable full vector. It's necessary for accurate report.
2016-11-07 20:30:57 -08:00
Behdad Esfahbod
3a4f1fb170
[Snippets/interpolatable] Skip incompatible glyphs
2016-10-30 14:28:07 +02:00
Behdad Esfahbod
3868ac845f
[Snippets/interpolatable.py] Flesh out some more
2016-06-24 19:00:56 -04:00
Behdad Esfahbod
0deb34829c
[Snippets/interpolatable.py] Add preliminary script for detecting interpolation errors
...
Very basic. Right now detects if glyphs have wrong order of contours / components.
2016-06-15 18:46:59 +04:00