454 Commits

Author SHA1 Message Date
jvr
8e1d75b1a3 ReverseChainSingleSubst support from Yannis H. (must get that generate-otdata-from-the-docs working again)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@459 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-22 13:12:55 +00:00
jvr
df1f145e5a bug from the spec leaked into here; pointed out by Yannis H.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@458 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-22 07:09:33 +00:00
jvr
7325cb480e checked in with unix line endings -- this probably needs proper review
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@457 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-18 07:33:01 +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
0b0fec3b08 debogofied doc string, added another one
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@453 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-16 10:14:48 +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
cc580ac0f8 Added Pen for reportlab.graphics.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@451 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-15 12:26:10 +00:00
jvr
27f108844e this should have been part of the previous path by some fixes from klchxbec
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@450 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-11 07:11:35 +00:00
jvr
fbff58cd78 Correctly deal with the TT-no-on-curve special case.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@449 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-09 23:29:45 +00:00
jvr
23cb200532 Factored out the SuperBezier and TT-implied-point algorithms, as the
may be useful separately from pens.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@448 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-07 09:41:28 +00:00
jvr
40cde70f16 - added endPath() method to the Pen protocol, as a counterpart for
closePath() for *open* sub paths. This allows pen implementations
  to reliably detect the end of a sub path.
- improved various doc strings.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@447 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-06 16:00:03 +00:00
jvr
49b5521f2e ensure that the current point is always set correctly
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@446 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-05 14:18:26 +00:00
jvr
3a6aa2359e tweaked doc string
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@445 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-02 19:23:13 +00:00
jvr
81383d6efc more acks
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@444 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-01 16:10:22 +00:00
jvr
5aaeac3333 Ha, a reserved field got eaten. Noticed by Yannis Haralambous.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@443 4cde692c-a291-49d1-8350-778aa11640f8
2003-09-01 15:09:29 +00:00
jvr
bb6041f834 *** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@442 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-30 06:46:56 +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
934fe5fb8f - added support for quadratic contours that have NO on-curve points.
- more doco and comments.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@438 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 19:30:46 +00:00
jvr
53d7523c1c more doco and comments
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@437 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-28 19:03:29 +00:00
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