Behdad Esfahbod
0bf67cc0c9
[statisticsPen] Fix __start_point access
...
Fixes https://github.com/fonttools/fonttools/issues/3527
2024-05-25 09:38:39 -06:00
Behdad Esfahbod
4eebdf4f0d
[statisticsPen] Add StatisticsControlPen
...
It uses the control box and discrete statistics instead
of using the Green's theorem.
Works better on contours that have no area.
Surprisingly, this seems to be slower than StatisticsPen.
Perhaps because MomentsPen is Cythonized.
2023-11-19 12:03:23 -07:00
Cosimo Lupo
0df4997661
prevent cython.compiled raise AttributeError if cython not properly installed
...
It's possible sometimes that 'import cython' does not fail but then 'cython.compiled' raises AttributeError.
It actually happened in our internal production environment...
Similar issue to https://github.com/pydantic/pydantic/pull/573 and https://github.com/ipython/ipython/issues/13294
2023-03-02 17:43:38 +00:00
Nikolaus Waxweiler
d584daa8fd
Blacken code
2022-12-13 11:26:36 +00:00
Behdad Esfahbod
97df4a130c
[symfont/momentsPen] Cythonize greenPen / momentsPen
...
Makes varLib.interpolatable 3x faster.
2022-07-28 15:35:51 -06:00
Behdad Esfahbod
22fd6f3eeb
[momentsPen] Remove manual editions
...
Move OpenContourError to basePen.
2022-07-28 14:01:31 -06:00
Nikolaus Waxweiler
a3acb1426b
Remove py23 import
2021-01-29 22:23:27 +00:00
Simon Cozens
c6e5a7ab93
Catch open contours more explicitly
2020-11-21 07:59:39 +00:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Behdad Esfahbod
c2033cb095
Document new pens
2017-02-26 10:41:11 -08:00
Behdad Esfahbod
f3bfea12c6
Add __all__ to pens that didn't have it
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
14b46cf7a6
[symfont] Move symfont to fontTools.misc.symfont
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
621759b3a8
[symfont] Add endPath()
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
821ea7385f
Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
0a2c5ef7ae
[symfont] Write generator code as main function in printPen() output
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
a8db22a077
Move MomentsPen into fontTools.pens.momentsPen
2017-02-20 12:33:12 -06:00