536 Commits

Author SHA1 Message Date
Behdad Esfahbod
8da8242d61 Port cmap table from numpy to array module 2013-08-19 14:17:10 -04:00
Behdad Esfahbod
fd647bf353 Port loca table from numpy to array module 2013-08-19 14:17:10 -04:00
Behdad Esfahbod
035bc7da23 Port hmtx table from numpy to array module 2013-08-19 14:17:10 -04:00
Behdad Esfahbod
4ffd404449 Fix decompiling GPKG on 64bit systems
array.array("L") reads 64bit ints, not 32bit.  Use "I" instead.
2013-08-19 14:17:10 -04:00
Behdad Esfahbod
400e9539fd Improve import handling
For example trying to run fontTools on Jython or PyPy fails
because they don't have a numpy module.  However, the error
is caught by the getTableModule() and instead DefaultTable
used for tables that use numpy in their implementation.  Fix
that.
2013-08-19 14:17:10 -04:00
Behdad Esfahbod
b0dc6dfc8b Add support for saving WOFF file format 2013-08-19 14:17:02 -04:00
Behdad Esfahbod
58d7416124 Add support for loading WOFF file format 2013-08-19 14:16:49 -04:00
Behdad Esfahbod
f09f1d4064 Raise exceptions on unimplemented T2CharString operators 2013-08-19 14:16:07 -04:00
Behdad Esfahbod
183afe6408 Optimize Coverage.postRead() 2013-08-19 14:16:07 -04:00
Behdad Esfahbod
12fd2ea9dc Turn "too much glyph data" into a warning
Some tools generate 4 bytes of padding where 0 is needed...
It's recoverable, so make it a warning.
2013-08-19 14:16:07 -04:00
Behdad Esfahbod
7d2c10ec74 Allow toXML() to be called on individual tables
Was hitting a missing attribute since disassembleInstructions was
being set by saveXML() only.
2013-08-19 14:16:06 -04:00
Behdad Esfahbod
85be2e0a97 Change duplicate-name resolution from n^2 to linear time
For a font with thousands of glyphs with the same name (like ipagp.ttf)
this was taking 9 seconds to complete.  Less than a millisecond now!
2013-08-19 14:16:06 -04:00
Behdad Esfahbod
26549ce298 Warn about excess data in kern table instead of aborting 2013-08-19 14:16:06 -04:00
Matt Fontaine
65499c1042 Minor improvement to TableStack
Push/pop on the end side, which should be faster.
2013-08-19 14:16:06 -04:00
Behdad Esfahbod
50d9a44e58 Add support for Microsoft COLR/CPAL layered color glyphs 2013-08-19 14:16:06 -04:00
Matt Fontaine
7baa13689c Add -z flag to ttx to choose a bitmap dump format 2013-08-19 14:16:04 -04:00
Matt Fontaine
b9ba775413 Add support for Google CBLC/CBDT color bitmaps 2013-08-19 14:15:58 -04:00
Matt Fontaine
c33b0a22ef Add support for standard EBLC/EBDT embedded bitmaps 2013-08-19 14:15:46 -04:00
pabs3
ec62dbe03e Release fonttools version 2.4
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@619 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 14:25:03 +00:00
pabs3
278d4d8cea Fix syntax error
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@617 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 08:16:33 +00:00
pabs3
e83b4c4482 Detect both types of quotes when detecting OTF vs TTF XML.
Fixes: http://sourceforge.net/p/fonttools/bugs/47/

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@616 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 08:13:22 +00:00
pabs3
5f4193373b Writing to stdout is not actually implemented yet
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@615 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 06:47:34 +00:00
pabs3
fb37a24708 Implement writing output to arbitrary files including stdout.
Partially-fixes: http://sourceforge.net/p/fonttools/feature-requests/7/

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@614 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 06:43:01 +00:00
pabs3
3ac875aa1d Fix consistency of space/tab usage.
Reference: http://docs.python.org/reference/lexical_analysis.html#indentation

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@613 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-12 05:04:24 +00:00
jvr
e0ddc58fc2 Georg Seifert: fix bug with Apple's kern table format
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@612 4cde692c-a291-49d1-8350-778aa11640f8
2012-11-10 17:58:30 +00: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
ca75e43333 Fix some typos in the ttx usage instructions
Patch-by: Paul Flo Williams <paul@frixxon.co.uk>
Fixes: https://bugzilla.redhat.com/694387
Fixes: http://sf.net/support/tracker.php?aid=3279073

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@590 4cde692c-a291-49d1-8350-778aa11640f8
2011-10-30 12:26:09 +00:00
pabs3
b8ce5bfe27 Remove shebang from ttyx.py since it is not executed directly
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@589 4cde692c-a291-49d1-8350-778aa11640f8
2011-03-28 10:41:39 +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
3de0e58f29 Fix bug in last commit
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@587 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 07:28:42 +00:00
pabs3
d3d7250fc3 Be more thorough when working around font bugs in the hmtx table
https://bugs.launchpad.net/ubuntu/+source/fonttools/+bug/223884

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@586 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 07:01:11 +00:00
pabs3
d5721376f2 Be more thorough when working around font bugs in the loca/glyf tables
https://bugs.launchpad.net/ubuntu/+source/fonttools/+bug/223884

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@585 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 06:27:09 +00:00
pabs3
df16db5bb8 Be more thorough when working around font bugs in the OS/2 table
https://bugs.launchpad.net/ubuntu/+source/fonttools/+bug/223884

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@584 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 06:25:21 +00:00
pabs3
98caac29f3 Long-format loca tables are unsigned not signed.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@583 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 06:24:19 +00:00
pabs3
1344bc9b62 Fix typos: 'neccesary' should be 'necessary'.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@581 4cde692c-a291-49d1-8350-778aa11640f8
2010-01-09 09:12:11 +00:00
pabs3
e7689a4856 Release fonttools version 2.3
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@579 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:58:24 +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
pabs3
17012aabbb Fix some broken assertions in the cmap format 1 code.
Shame on Gentoo for not forwarding the patch upstream.

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@577 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:55:53 +00:00
pabs3
0a6dea0ac2 Fix typo in help output.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@575 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:53:24 +00:00
pabs3
bc7b74803d updated unicode module to unicode 5.2.0
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@570 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 11:00:00 +00:00
pabs3
86368e7ac0 Raising strings is deprecated in Python 2.5, raise an exception instead.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@569 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 06:39:37 +00:00
pabs3
0e2aecec53 Fix some warnings due to signedness and 64-bitness issues
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@568 4cde692c-a291-49d1-8350-778aa11640f8
2009-03-24 09:42:15 +00:00
pabs3
e70bb8af70 Remove old .cvsignore file
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@566 4cde692c-a291-49d1-8350-778aa11640f8
2009-03-23 07:11:54 +00:00
pabs3
7e91e776c9 Apply remainder of #1675210: add support for TrueType Collection (TTC) files.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@564 4cde692c-a291-49d1-8350-778aa11640f8
2009-02-22 08:55:00 +00:00
jvr
d67cf25974 don't use 'as' as a name, it's a keyword in Python >= 2.6
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@563 4cde692c-a291-49d1-8350-778aa11640f8
2008-09-16 14:14:44 +00:00
jvr
c63ac64007 fixed buglet that caused the last table in the font not to be padded to a 4-byte boundary (the spec is a little vague about this, but I believe it's needed, also, Suitcase may complain...)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@562 4cde692c-a291-49d1-8350-778aa11640f8
2008-06-17 20:41:15 +00:00
pabs3
ff85008e80 Get ready to release version 2.2
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@559 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-18 06:28:37 +00:00
jvr
4d29ba1595 updated unicode module to unicode 5.1.0
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@558 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 09:21:49 +00:00
jvr
a220bf3567 a different fix for [1296026]: just comment out the offending assert
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@557 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 08:52:33 +00:00
jvr
03e02adeb4 back out 'fix', as this solution isn't portable
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@556 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 08:44:06 +00:00