Behdad Esfahbod
e72781bf37
Revert c386d54fe3f1bb12561126044cc5a7a7f0d80fe2
2013-11-25 03:52:30 -05:00
Behdad Esfahbod
f3a8aeada3
Remove unused fontTools.misc.psOperators
2013-11-24 19:59:07 -05:00
Behdad Esfahbod
e0f84aabfa
Remove unused fontTools.misc.psLib
2013-11-24 19:59:07 -05:00
Behdad Esfahbod
3ebfea491e
Move fontTools.ttLib.importXML to fontTools.misc.xmlReader
...
Better matches xmlWriter.
2013-11-24 19:00:59 -05:00
Behdad Esfahbod
c386d54fe3
Allow passing in locals variables to safeEval()
2013-11-24 09:37:49 -05:00
Behdad Esfahbod
846d09e380
Allow None for globalSubrs in T2CharString
2013-11-18 14:11:30 -05:00
Behdad Esfahbod
8413c108d2
Move sstruct under fontTools.misc
...
Our footprint in the Python module namespace is all under
fontTools now. User code importing sstruct should be updated
to say "from fontTools.misc import sstruct".
2013-09-17 16:59:39 -04:00
Behdad Esfahbod
f65033e277
Move xmlWriter into fontTools.misc
...
Trying to cleanup our footprint in the Python namespace.
2013-09-17 16:41:32 -04:00
Behdad Esfahbod
843ffd8c79
Port glyf coordinates from numpy to custom type
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
4f033683ca
Port glyf transform from numpy to lists
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
f09f1d4064
Raise exceptions on unimplemented T2CharString operators
2013-08-19 14:16:07 -04: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
pabs3
85fe10da62
Remove executable permissions from files that do not need them
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@588 4cde692c-a291-49d1-8350-778aa11640f8
2011-03-28 10:18:27 +00:00
pabs3
0682316b8c
Fix loading the fontTools.misc.eexecOp module that speeds up fontTools.misc.eexec.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@578 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:57:07 +00:00
jvr
a983e66970
- turned ps exceptions into classes and renamed them
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@550 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-11 07:25:29 +00:00
jvr
e56bc902cf
- t1Lib.py can now properly read PFA fonts
...
- fixed "flex" bug in T1 charstring reader
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@549 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-10 21:58:00 +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
41144b9306
- moved Numeric import to top
...
- converted tests to doctest
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@534 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 14:47:11 +00:00
jvr
45d1f3b3b5
- removed support for Python 2.2 on MacOS 10.2
...
- worked around a bug in GetCreatorType() on intel Macs
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@526 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 11:34:54 +00:00
pabs3
26a46b7fce
Patch #1296028 from Tomasz Wegrzanowski: improve performance with CJK fonts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@512 4cde692c-a291-49d1-8350-778aa11640f8
2007-08-25 06:19:37 +00:00
jvr
7099f4c0f9
support the deprecated dotsection T2 operator
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@505 4cde692c-a291-49d1-8350-778aa11640f8
2006-02-25 21:39:33 +00:00
jvr
d4561ec1b4
some flex hint fixes from rroberts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@499 4cde692c-a291-49d1-8350-778aa11640f8
2005-05-07 08:41:12 +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
95c9e9fc11
This patch fixes two things
...
- in T2 charstrings, a byte code of 255 is followed by a 16.16 fixed
point number, not a 4-byte int as in T1. Noted by rroberts.
- some integers were not correctly encoded in the T1 compiler.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@485 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-23 21:22:27 +00:00
jvr
8b8b44904e
- Implemented the flex operators for T2
...
- Changed a whole bunch of XXX traps into NotImplementedErrors
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@456 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-17 17:32:11 +00:00
jvr
deca398915
more doctests
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@455 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-16 11:30:29 +00:00
jvr
f184f75486
Added lots of doco and doctests.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@454 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-16 11:01:40 +00:00
jvr
d3ee2d4319
- Properly support the pen protocol for open sub paths in Type 1
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@452 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-16 09:48:28 +00:00
jvr
fc3879e463
- renamed all l,t,r,b tuff to xMin, yMin, xMax, yMax
...
- added ome more doc strings
- added some minimal test code
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@441 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-29 19:29:46 +00:00
jvr
6628513fe4
T2: I'm not sure if the seac-variant of the endchar operator may be
...
combined with actual outlines, but if it is, we need to do the closePath
before the components are added.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@440 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-29 08:05:39 +00:00
jvr
382df6c42a
added deprecated endchar/seac support for T2 charstrings
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@439 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 20:43:06 +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
489d76a340
Refactored outline extraction for CharStrings. The interface to
...
T{1,2}OutlineExtractor is not backwards compatible and this change
basically makes them private classes: CharStrings now have a .draw()
method that takes a Pen object (see fontTools.pens.*), so you never
have to deal with the extractor objects yourself. Only lightly tested.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@417 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-24 19:56:16 +00:00
jvr
9920ad5286
added and tweaked some asserts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@414 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-24 16:25:12 +00:00
jvr
6385a4e9e1
remove trailing whitespace
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@413 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-24 16:17:11 +00:00
jvr
9e58c90401
this module has been included in so many (in house) packages that it's time it gets a more central place.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@399 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 14:56:48 +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
jvr
182a7ba7be
two new functions
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@395 4cde692c-a291-49d1-8350-778aa11640f8
2003-06-29 18:18:54 +00:00
jvr
d7787131e4
'python' implementation of hex functions
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@290 4cde692c-a291-49d1-8350-778aa11640f8
2002-07-23 09:26:19 +00:00
jvr
1e59feca35
finally upgraded psLib to use re instead of the long obsolete regex module.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@271 4cde692c-a291-49d1-8350-778aa11640f8
2002-06-04 19:11:03 +00:00