jvr
a5c92986dd
avoid glyphSet.get(): not all glyphsets in use implement it.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@498 4cde692c-a291-49d1-8350-778aa11640f8
2005-04-10 13:18:42 +00:00
jvr
2e4cc02ca3
BasePen should not fail if a base glyph does not exist in the glyph set; added get() method to _TTGlyphSet class
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@497 4cde692c-a291-49d1-8350-778aa11640f8
2005-03-08 09:50:56 +00:00
jvr
3a98ae5baf
added _endPath method; without it, we'd fail on open paths (which requires pen.endPath() to be called instead of pen.closePath())
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@496 4cde692c-a291-49d1-8350-778aa11640f8
2005-03-08 09:40:25 +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
31ae380735
fixed problem with empty ClassDef, as well as added some more defenses for possible empty tables
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@484 4cde692c-a291-49d1-8350-778aa11640f8
2005-02-11 19:36:38 +00:00
jvr
10fd22a989
expose onlyHeader keyword arg to generic read() func
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@483 4cde692c-a291-49d1-8350-778aa11640f8
2005-01-25 19:06:51 +00:00
jvr
7afc6b989c
uh, and the other one
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@482 4cde692c-a291-49d1-8350-778aa11640f8
2005-01-24 10:18:58 +00:00
jvr
79c1316d65
fixed buglet in GlyphSet support code
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@481 4cde692c-a291-49d1-8350-778aa11640f8
2005-01-24 10:06:45 +00:00
jvr
1ed5b4746d
fixed 2.4 compat issue
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@480 4cde692c-a291-49d1-8350-778aa11640f8
2005-01-24 10:05:52 +00:00
jvr
f34c6f3937
fix for new 2.4 hex() behavior
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@478 4cde692c-a291-49d1-8350-778aa11640f8
2004-12-24 16:07:01 +00:00
jvr
e0912bb819
fix for new 2.4 hex() behavior
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@477 4cde692c-a291-49d1-8350-778aa11640f8
2004-12-24 15:59:35 +00:00
jvr
28ae196229
Refactored and enhanced table order support:
...
- Rewrote sorting function, it was really quite buggy.
- Added reorderFontTables() functions, which reorders the
tables in a font at the sfnt level.
- TTFont.save() will now by default rewrite the font in the
optimized order. This is done through a temp file since
our dependency checking logic gets in the way of writing
the tables in a predefined order directly (if table A depends
on B, table B will always be compiled and written first, so
this prevents A from showing up in the file before B).
sfnt.py:
- removed closeStream option from SFNTWriter.close(); it's better
done by the caller (TTFont).
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@475 4cde692c-a291-49d1-8350-778aa11640f8
2004-11-16 10:37:59 +00:00
jvr
a4f6688ebe
tweak & bugfix
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@474 4cde692c-a291-49d1-8350-778aa11640f8
2004-11-16 09:12:30 +00:00
jvr
427f9802bc
make sure that a cmap subtable instance always has a language attr, so __cmp__ can't fail
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@473 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-26 18:32:50 +00:00
jvr
fba0609d54
Fix for [ 808370 ] Dumping Legendum.otf fails on 'kern' table
...
Work around buggy kern table.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@472 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 10:56:15 +00:00
jvr
1fae9b48d3
[ 637398 ] Failure while parsing OpenType file
...
Deal with empty Coverage table: it will be None so won't have a .glyphs
attribute.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@471 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 10:31:29 +00:00
jvr
266bf21dbe
workaround for bug [ 766694 ] Error from invalid date
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@470 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 10:01:12 +00:00
jvr
980fae897a
bug #784690 : simple workaround for buggy name table
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@469 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 09:12:00 +00:00
jvr
a84b28d934
- Refactored XML writing, removed lots of code duplicaiton
...
- Only output unicode names as comments if we're in fact dealing with
a unicode cmap subtable (and this is -- in theory -- independent of
cmap format)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@468 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 09:06:58 +00:00
jvr
39c1918939
"Downgraded" AGL list to the "Adobe Glyph List For New Fonts", which is
...
most appropriate here. There may be a use for the "big" AGL, but that will
have to become a new module.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@466 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 08:12:50 +00:00
jvr
13325c613a
[ 845172 ] Updating to Unicode 4.0.0
...
Instead of using a list internally, I now use a dict, since the unicode
mapping is quite sparse (lots of unused slots).
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@465 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 07:47:41 +00:00
jvr
6588c4e2df
Patch #845551 from Anthony Fok:
...
- two minor typos
- changed copyright year in LICENSE (and it's 2004 now...)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@464 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 07:35:05 +00:00
jvr
0cd79a5642
Patch #845571 from Anthony Fok:
...
- better exception msg in loca table
- renamed "version" to "language" in cmap
- made cmap 12 work (untested by me)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@463 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 07:30:47 +00:00
jvr
7718d95951
whoops, forgot one part os OS/2 version 3 support
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@462 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 07:19:27 +00:00
jvr
30bcb12dcb
added support for OS/2 table #3
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@461 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-24 18:33:19 +00:00
jvr
05e2541b49
Fixed subtle bug in curve intersection logic: due to floating point errors,
...
sometimes a legitimate solution is ever so slightly over 1.0. Those used to
be filtered out; now checking for 1.0 + 1e-10.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@460 4cde692c-a291-49d1-8350-778aa11640f8
2003-10-14 20:30:07 +00:00
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
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
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