Behdad Esfahbod
1296c7457e
Make tests pass with Python3
...
In python3, str(float) is noisy. Always format floats using "%g".
2015-03-03 15:54:37 -08:00
Behdad Esfahbod
e02b9ea05b
Fix tests to return failures
2015-03-03 10:47:40 -08:00
Behdad Esfahbod
f192400039
Fix checks; add run-tests.sh
2015-03-03 09:57:41 -08: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
153ec40209
Fix a few pychecker warnings
...
Fixes https://github.com/behdad/fonttools/issues/58
2013-12-04 01:15:46 -05: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
Behdad Esfahbod
ac1b435946
2to3 --fix=idioms
2013-11-27 04:15:34 -05:00
jvr
91bca42442
merging fixes & changes from delft-sprint-2012
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@611 4cde692c-a291-49d1-8350-778aa11640f8
2012-10-18 12:49:22 +00:00
jvr
1b7d54fedc
converted usage of Numeric to numpy
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@537 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:25:27 +00:00
jvr
c53569efef
use highly unscientific epsilon value
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@495 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 22:31:39 +00:00
jvr
86c07d2b9a
more doco, reformatted __all__
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@494 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 12:51:49 +00:00
jvr
441fdd1e9f
reworked test code and results, to make the results more readable
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@493 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 12:40:52 +00:00
jvr
10de259aec
Refactored splitting logic; added splitQuadraticAtT() and splitCubicAtT()
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@492 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 12:28:45 +00:00
jvr
0ec07f2dbc
show/test that _testrepr() reprs Numeric arrays nicely, too
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@491 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 10:47:36 +00:00
jvr
82fdf153ac
added a comment
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@490 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 10:42:29 +00:00
jvr
befd485af5
factored out param -> points conversion
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@489 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 10:40:07 +00:00
jvr
9369c20087
renamed and rewrote _tuplify() to _testrepr(), added tests for splitCubic()
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@488 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 10:33:47 +00:00
jvr
8ee2561bc1
some refactoring, some doctests
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@487 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-25 10:11:30 +00:00
jvr
bfadfe33db
- Fixed ZeroDivisionError in solveCubic(). The solution is mathematically
...
dubious (I don't think 0.0/0.0 == 0.0...) but the result seems to be
correct.
- Documented that soleCubic() and solveQuadratic() are not guaranteed to
return the roots in order, and nor that they are guaranteed to not return
duplicate roots.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@431 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-26 19:20:33 +00:00
jvr
efaae5245c
- optimized a couple of invariant expressions
...
- made sure solveCubic() also works when called with integer arguments
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@398 4cde692c-a291-49d1-8350-778aa11640f8
2003-06-29 19:25:05 +00:00
jvr
9524c7bdd3
splitLine(): make sure the split is between the end points
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@397 4cde692c-a291-49d1-8350-778aa11640f8
2003-06-29 18:32:00 +00:00
jvr
05b4b4a271
new module bezierTools.py
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@396 4cde692c-a291-49d1-8350-778aa11640f8
2003-06-29 18:25:07 +00:00