431 Commits

Author SHA1 Message Date
jvr
1cff4cb190 workaround for buggy 2.2 mac support
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@436 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 18:23:43 +00:00
jvr
3430abf7ab whitespace nits
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@435 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 18:14:33 +00:00
jvr
bafa66e665 Another patch from rroberts. He writes:
"""It adds full support for cmap format 2, which is what
the Adobe CJK fonts use for the Mac cmap subtable."""


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@434 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 18:04:23 +00:00
jvr
ceb3449e2b whoops, forgot to add the .pens subpacke to the distutils script :-( noticed by rroberts.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@433 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 17:59:52 +00:00
jvr
4162de350e Is the point inside or outside the outline?
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@432 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 08:51:45 +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
d028b7be3c Set .width in _TTGlyph.__init__ after all: these are just this wrapper
objects, _TTGlyphSet doesn't cache them, so setting .width in .draw()
is confusing to say the least.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@430 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-26 19:00:38 +00:00
jvr
e028b38340 new Cocoa=specific drawing pen
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@429 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-26 18:20:27 +00:00
jvr
6f8f5ded55 fixed AttributeError in _TTGlyphSet.keys()
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@428 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-26 18:19:11 +00:00
jvr
d453a23b38 typo pointed out by Adam T.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@427 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-26 12:02:48 +00:00
jvr
4ca01eab4a output don't-edit note
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@426 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 21:19:47 +00:00
jvr
6d9e8e8831 document that this file is generated
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@425 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 21:19:09 +00:00
jvr
77bc20a387 add rroberts to the Acknowledgements section; updated some years
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@424 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 21:16:12 +00:00
jvr
7d4b693627 add the generic getGlyphSet() API to T1Font as well.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@423 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 17:53:29 +00:00
jvr
1c9917bcf4 comment typo fix, reflow
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@422 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 13:20:38 +00:00
jvr
808c7885bd lots of stuff
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@421 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 13:18:23 +00:00
jvr
8df8f6385e TTFont now has a getGlyphSet() method, which will return a generic
GlyphSet. A GlyphSet is simply a dict-like object mapping glyph names
to glyphs. The glyphs in a GlyphSet have a .draw(pen) method and a
.width attribute. This provides a generic interface for drawing glyphs
or extracting outlines, and works both for CFF-based fonts and TT fonts.

See also fontTools.pens.basePen for a description of what makes a Pen
a Pen.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@420 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 13:15:50 +00:00
jvr
731ed49dbc add some more dict-like stuff to the glyf table
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@419 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 12:23:01 +00:00
jvr
ce522410f2 small nits
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@418 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 07:37:25 +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
3d24a106ba don't use macfs, it's deprecated
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@416 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-24 19:52:03 +00:00
jvr
382102645a small tweak
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@415 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-24 17:23:34 +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
2bb6cd3506 ugh, lineTo != moveTo...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@412 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-24 09:48:49 +00: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
jvr
b47e3ba3ae some fixes from klchxbec
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@409 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 20:21:08 +00:00
jvr
aa2723c559 VORG support by rroberts.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@408 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 20:02:25 +00:00
jvr
ed10151701 Lots of CID work by rroberts.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@407 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 19:53:32 +00:00
jvr
700df03131 - attempted to sort tables in order recommended by spec.
TODO: need to fix table dependency order to complete this.
  (Read: would you mind posting a bug report regarding this?)


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@406 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 19:44:08 +00:00
jvr
f509c0f070 support for CEF fonts: don't depend on the head table being available
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@405 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 19:38:37 +00:00
jvr
07dd0e4504 recalc numGlyphs upon writing
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@404 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 19:34:48 +00:00
jvr
d407973545 update macUtils to current day MacPython
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@403 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 18:56:01 +00:00
jvr
5149e18031 attempt to set the value for fRectWidth 'more correctly'
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@402 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 18:53:29 +00:00
jvr
0bb3ba5222 some modernizations
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@401 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 18:52:22 +00:00
jvr
2e838ce766 Jaguar Python 2.2 workaround
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@400 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 18:50:44 +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
b19141e489 avoid FSSpec on MacOS
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@394 4cde692c-a291-49d1-8350-778aa11640f8
2003-06-07 15:15:51 +00:00
jvr
5910f97146 add default _attrs value so pickling AFM objects doesn't blow up
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@393 4cde692c-a291-49d1-8350-778aa11640f8
2003-05-24 12:50:47 +00:00
jvr
59afba7684 updated for MacPython2.3
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@392 4cde692c-a291-49d1-8350-778aa11640f8
2003-05-24 12:34:11 +00:00
jvr
e73b8a53a5 Fix for bug #691744; calc_mac_epoch_diff() was broken when the timezone
was GMT (or perhaps other situations; it's not entirely clear).


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@391 4cde692c-a291-49d1-8350-778aa11640f8
2003-02-23 19:40:07 +00:00
jvr
924e4e274e cmap format 12 support, donated by rroberts: thanks!
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@390 4cde692c-a291-49d1-8350-778aa11640f8
2003-02-08 10:45:23 +00:00
jvr
a87cde236e second try to work around bogus stringOffset value
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@389 4cde692c-a291-49d1-8350-778aa11640f8
2003-01-25 18:20:22 +00:00
jvr
b71d0f46f6 renamed stringoffset to stringOffset as per spec
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@388 4cde692c-a291-49d1-8350-778aa11640f8
2003-01-25 11:15:42 +00:00
jvr
aabca6d793 gracefully handle bogus stringOffset values (thanks to Anthony Fok)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@387 4cde692c-a291-49d1-8350-778aa11640f8
2003-01-25 11:14:59 +00:00