Cosimo Lupo
0df9b989be
[boundsPen] add init() method to reset ControlBoundsPen
...
So one can reuse the same pen instance to compute the bounds of more than one glyph in a glyphset, by calling pen.init() before each glyph.draw(pen)
2017-10-13 11:49:36 +01:00
Cosimo Lupo
dc2ef2e341
boundsPen: add 'ignoreSinglePoints' argument to do like robofab.pens.boundsPen
...
if `ignoreSinglePoints` is True, single points are excluded from the computation of the bounds.
The default value (False) keeps the current behaviour (i.e., single points are not ignored).
https://github.com/robofab-developers/robofab/blob/master/Lib/robofab/pens/boundsPen.py
See discussion at: https://github.com/typemytype/booleanOperations/pull/20
2016-01-07 15:47:31 +00:00
Sascha Brawer
c84975299e
Unit tests for BoundsPen
2015-05-26 11:32:11 +02:00
Behdad Esfahbod
1ae29591ef
from __future__ import absolute_import
...
Such that our Python 2 is closer to Python 3.
Part of https://github.com/behdad/fonttools/issues/77
2014-01-14 15:07:50 +08:00
Behdad Esfahbod
32c10eecff
py23 from __future__ import division and adjust divisions
2013-11-28 17:32:42 -05:00
Behdad Esfahbod
30e691edd0
py23 from __future__ import print_function
2013-11-27 17:27:45 -05:00
Behdad Esfahbod
7ed91eca1e
py23 import in all nontrivial source files and unused import cleanup
2013-11-27 15:25:00 -05:00
Behdad Esfahbod
3ec6a25823
2to3 --fix=print with manual fixup
2013-11-27 04:57:33 -05:00
jvr
82ef2a52c9
wrapped some long lines
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@411 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-23 20:24:42 +00:00
jvr
b369ef33fc
Pen stuff, see http://just.letterror.com/cgi-bin/wypy?PenProtocol
...
Only lightly tested, component support is not tested at all.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@410 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-23 20:19:33 +00:00