jvr
d4d151390d
Completely revamped OT support; this time it works and is complete. XML output is not yet as pretty as can be.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@208 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-11 00:59:27 +00:00
jvr
6fc514edf3
fix unknown subtable format and handling of Apple fonts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@207 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-10 19:52:14 +00:00
jvr
22dcb9e6f9
a few cosmetic/style changes
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@206 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-10 19:03:34 +00:00
jvr
1940dfbe0e
checking in last edits to the old OT support; this stuff will be replaced by brand new code soon.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@205 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-10 19:02:04 +00:00
jvr
9f1e14bec9
Work around bootstrapping problem in TTFont._getGlyphNamesFromCmap():
...
If the cmap parser was the one to cause _getGlyphNamesFromCmap() to be
called, no unicode cmap was found as it was just starting to get
loaded. This resulted in different glyph names, depending on when
the cmap parser was invoked.
Also added a bunch of comment describing what this method does.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@204 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-05 11:29:33 +00:00
jvr
cf4b3b3d9b
renamed _getTableData() to getTableData(); optimized getGlyphOrder() somewhat.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@202 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-05 09:48:31 +00:00
jvr
f707463256
added support for deleting tables: del f[tag]
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@201 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-04 22:04:02 +00:00
jvr
0d762b00de
use dict for extraNames lookups, getting rid of quadratic behavior
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@200 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-04 22:03:05 +00:00
jvr
a36fd88a20
Work in progress on CFF, GPOS and GSUB. Since it's only partly working, it's diasabled by default.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@189 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-03 17:01:25 +00:00
jvr
2a9c630193
use composition rather than inheritance; \
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@188 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-03 14:33:41 +00:00
jvr
e82b4d5658
only keep the orginal table around in two special cases.\n this fixes a problem with importing individual tables.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@186 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-02 20:54:08 +00:00
jvr
d04a3bb4f9
use version from fontTools.__init__.py
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@184 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-02 15:23:25 +00:00
jvr
9b7b8e0f5b
re-added progress support, to be tested
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@183 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-02 15:16:45 +00:00
jvr
1288f8ad41
whoops, lastIndex can't be smaller than 1
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@182 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-02 10:53:10 +00:00
jvr
e493669d19
rearranged a bit, removed redundant imports
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@180 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-01 21:32:37 +00:00
jvr
ca4c45681e
Complety revised the XML import code:
...
- use expat instead of xmlproc
- minor fixes here and there
Fixed bug in hmtx/vmtx code that only occured if all advances were equal.
FontTools now officially requires Python 2.0 or up, due to exapt and unicode.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@179 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-01 21:06:11 +00:00
jvr
f9104bcc2c
another buggy font workaround; sped up unpackPStrings somewhat
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@177 4cde692c-a291-49d1-8350-778aa11640f8
2002-01-17 09:36:30 +00:00
jvr
ae43d92ea9
Hm, these instructions had their stack pop-count reversed.
...
Thanks to L. Peter Deutsch for finding this.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@176 4cde692c-a291-49d1-8350-778aa11640f8
2002-01-07 08:44:09 +00:00
jvr
c2b05ccf8c
fixed post table format 1 error: even though the glyph order is fixed,
...
that doesn't mean all glyphs in the standard order are there.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@174 4cde692c-a291-49d1-8350-778aa11640f8
2001-11-05 19:32:30 +00:00
jvr
c3403cfbd4
style constency
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@168 4cde692c-a291-49d1-8350-778aa11640f8
2001-08-15 09:26:15 +00:00
jvr
6146b084c2
spec changed: three fields are now unsigned instead of signed,
...
and due to the the wonderful <snort> hungarian notation the field
names changed as well... (So this change is not b/w compatible)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@167 4cde692c-a291-49d1-8350-778aa11640f8
2001-08-15 07:01:44 +00:00
jvr
95cf546fb4
dump macStyle as binary
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@166 4cde692c-a291-49d1-8350-778aa11640f8
2001-08-15 07:00:01 +00:00
jvr
4d3b7279db
work around MacPython 2.1 incompatibility
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@164 4cde692c-a291-49d1-8350-778aa11640f8
2001-08-10 22:17:34 +00:00
Just
30dae0d179
removed dependency on old transformation class
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@139 4cde692c-a291-49d1-8350-778aa11640f8
2001-07-30 19:05:49 +00:00
Just
64892f5a34
Don't take month and day names from calendar.py: a buggy Metrowerks strftime() made this crash hard in Python 2.2.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@137 4cde692c-a291-49d1-8350-778aa11640f8
2001-06-27 23:09:57 +00:00
Just
a556f51db5
don't allow duplicate glyph names when building names from cmap/agl
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@129 4cde692c-a291-49d1-8350-778aa11640f8
2001-02-23 21:58:57 +00:00
Just
ae180248fd
workaround for currupt (?) cmap subtable
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@128 4cde692c-a291-49d1-8350-778aa11640f8
2001-01-13 13:48:30 +00:00
Just
731e4377e1
don't complain as loudly with fonts that don't completely adhere to the spec
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@127 4cde692c-a291-49d1-8350-778aa11640f8
2000-11-03 10:29:08 +00:00
Just
6d925f5b9a
workaround for odd-length unicode strings (!)
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@126 4cde692c-a291-49d1-8350-778aa11640f8
2000-10-23 14:36:20 +00:00
Petr
fc99ad1513
doh! font bounding box goes to the head table, not maxp itself.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@125 4cde692c-a291-49d1-8350-778aa11640f8
2000-10-18 22:27:47 +00:00
Just
481fb09495
added workaround for buggy Apple fonts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@122 4cde692c-a291-49d1-8350-778aa11640f8
2000-10-13 13:51:33 +00:00
Just
43fa4be948
added workaround for Py 1.5.1 compatibility
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@121 4cde692c-a291-49d1-8350-778aa11640f8
2000-10-11 18:04:03 +00:00
Just
0f675860ce
improved support for writing to (in memory) streams
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@119 4cde692c-a291-49d1-8350-778aa11640f8
2000-10-02 07:51:42 +00:00
Just
fdea99d265
minor fix
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@118 4cde692c-a291-49d1-8350-778aa11640f8
2000-08-23 12:34:44 +00:00
Just
d5b65a4ed1
made calculating bounding box handle empty coordinate arrays gracefully
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@117 4cde692c-a291-49d1-8350-778aa11640f8
2000-08-23 12:34:19 +00:00
Just
f6b1563e0d
removed an assert that was too strict
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@116 4cde692c-a291-49d1-8350-778aa11640f8
2000-08-23 12:33:14 +00:00
Just
c91a95189a
minor changes
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@115 4cde692c-a291-49d1-8350-778aa11640f8
2000-08-23 12:31:52 +00:00
Just
ca9679eded
another OT source table
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@112 4cde692c-a291-49d1-8350-778aa11640f8
2000-06-29 18:35:47 +00:00
Just
859967e521
formatting
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@111 4cde692c-a291-49d1-8350-778aa11640f8
2000-06-08 18:38:43 +00:00
Just
306d24ec79
Allow long-aligned glyph records (as is in fact recommended by the latest MS spec, but almost nobody seems to do it...)
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@110 4cde692c-a291-49d1-8350-778aa11640f8
2000-06-07 19:13:11 +00:00
Just
1b850986ef
Fixed cmap optimizer bug: needs more testing!
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@109 4cde692c-a291-49d1-8350-778aa11640f8
2000-06-07 18:25:44 +00:00
Just
e0433b907d
Fixed getCoordinates() so it works correctly with "empty" components.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@108 4cde692c-a291-49d1-8350-778aa11640f8
2000-06-07 18:08:02 +00:00
Just
cb317bfad3
The "flags" field is an unsigned short, not a byte
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@107 4cde692c-a291-49d1-8350-778aa11640f8
2000-06-07 18:07:14 +00:00
Just
5216353ab4
added doc strings to empty __init__.py files: WinZip apparently skips empty files. Doh!
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@94 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 23:21:41 +00:00
Just
7bf760f45c
fixed multi-arg .append() call, for Python 1.6 compatibility.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@93 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 23:21:26 +00:00
Just
d29f289911
- some method name changes
...
- check for 3,0 platform/encoding wide strings
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@92 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 23:03:53 +00:00
Just
7f34d735e0
minor fixes. Note: format2 is not implemented correctly!
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@91 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 23:02:33 +00:00
Just
670c985d76
added doc strings to empty __init__.py files: WinZip apparently skips empty files. Doh!
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@90 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 23:01:03 +00:00
Just
83736c6ffd
fixed multi-arg .append() call, for Python 1.6 compatibility.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@89 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 23:00:21 +00:00
Just
4ff3ba99a7
changes reflecting a method name change in the kern table.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@88 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-14 22:59:39 +00:00