Behnam Esfahbod
25fc268acb
fontView: Set column titles and disable sorting
...
Also handle some KeyError exceptions
2013-09-03 20:27:14 -07:00
Behdad Esfahbod
ac10d81ac8
Fix misc pychecker warnings
2013-09-03 18:31:59 -04:00
Behdad Esfahbod
22849901ac
[fontView] Fix glyph expanding
2013-09-03 18:26:29 -04:00
Behdad Esfahbod
7adbdd6242
Fix Subsetting CFFs without subroutines
...
https://github.com/behdad/fonttools/issues/1
Based on patch from Jens Kutilek.
2013-09-03 16:23:27 -04:00
Behdad Esfahbod
cbcaccf2f8
[subset] Fixup previous commits for fonts that do have FDSelect
...
Oops!
2013-08-30 16:21:38 -04:00
Behdad Esfahbod
83f1f5c438
[subset] Fix CFF subsetting of fonts with no FDSelectors
2013-08-30 16:20:08 -04:00
Behdad Esfahbod
ee5e163149
[setup.py] Add new tools
2013-08-29 18:53:38 -04:00
Behdad Esfahbod
4d1541a66b
[setup.py] Remove numpy
2013-08-29 18:50:24 -04:00
Behdad Esfahbod
0864e87d88
Remove closure-gsub-text.py
...
It's a nice example, but not useful enough to be in tree.
May resurrect it later.
2013-08-29 18:44:59 -04:00
Behdad Esfahbod
b69400fe60
Merge pyotlss, rename it to pyftsubset
...
Adds module fontTools.subset
2013-08-29 18:43:56 -04:00
Behdad Esfahbod
1158118857
Merge pyfontview, rename it to pyftfontview
...
Adds module fontTools.fontView
2013-08-29 18:36:38 -04:00
Behdad Esfahbod
852e8a50c8
Add TODO items
2013-08-29 18:19:22 -04:00
Behdad Esfahbod
50f83ef3dc
Don't drop empty CFF table
2013-08-29 18:18:17 -04:00
Behdad Esfahbod
b69b6718b2
Don't drop empty 'glyf' table
2013-08-29 18:17:31 -04:00
Behdad Esfahbod
2d82c32e64
Drop outline for gid0 / .notdef glyph
2013-08-29 18:02:48 -04:00
Behdad Esfahbod
04f3a1939a
Don't include gid1, gid2, gid3 by default
...
Those "recommendations" are ancient. Only include gid0 by default.
Two new options: --no-notdef-glyph and --recommended-glyphs.
2013-08-29 16:56:55 -04:00
Behdad Esfahbod
03d78da72e
Turn canonical-order off by default
...
It's just a recommendation after all.
2013-08-29 16:42:00 -04:00
Behdad Esfahbod
562400ea10
Update table list for SVG
2013-08-29 16:15:14 -04:00
Behdad Esfahbod
ddcca79308
Add 'SVG ' table implementation from Read Roberts (Adobe)
2013-08-28 17:25:16 -04:00
Behdad Esfahbod
a17743fe94
Also drop SVG color-glyph table
2013-08-28 17:14:53 -04:00
Behdad Esfahbod
c4af3964fb
Revert "Make GlyphOrder object iterable"
...
This reverts commit e4a670cc7da93d3a12ba23d8cfefdeb0ec7be01f.
As Read Roberts wrote to me:
"you changed the definition of the GlyphOrder class to take a ttFont as
the argument for the __init__ function, rather than just the
tag, as before, I think so that the glyph order is defined when the
table is instantiated, rather than only when to/fromXML() is called
The problem with this is that the ttx.py compile function passes in a tag,
so compiling a font from an ttx file fails here, and in
xmlImport.startElementHandler(). I discovered this because a number of my
scripts use the same logic. What is the reason for this change? I have no
problem with changing the several FDK scripts that build a new TTF font
from scratch, to pass in the ttFont rather than a tag, but wanted to be
sure that this was necessary. The main issues are that when reading in an
entire TTX file, the table has to be instantiated before the data can be
provided, and the GylphOrder initialization is then different than for
all the other tables"""
As such revert. This means that GlyphOrder is again non-iterable. Will
have to fix in some other way later.
2013-08-28 17:12:12 -04:00
Behdad Esfahbod
39a39ac00a
Use module __all__ instead of manually cleaning the module space
2013-08-22 18:10:17 -04:00
Behdad Esfahbod
68819fda9a
Remove obsolete code
2013-08-22 15:35:00 -04:00
Behdad Esfahbod
4b3df49b5b
Fix XML encoding
...
1. Write out using utf-8 encoding. Shouldn't matter really since
we don't generate non-ASCII data,
2. When parsing, DON'T override the file's encoding!
2013-08-20 15:29:19 -04:00
Behdad Esfahbod
348f858b6f
Fix recursion glyph filtering again
...
When writing this code I argued that no two recursion records
in the same rule can both apply to index=0. Well, cibu found
that NotoSansBengali-Regular.ttf does exactly that...
Test with "য্রী".
2013-08-20 11:50:04 -04:00
Behdad Esfahbod
9a72de4b89
Minor
2013-08-20 11:43:34 -04:00
Behdad Esfahbod
d8b32bf6e2
Minor import cleanup
2013-08-19 15:27:14 -04:00
Behdad Esfahbod
d711d4bf71
Cleanup imports
2013-08-19 14:46:08 -04:00
Behdad Esfahbod
45a8460ad3
Clean up imports
2013-08-19 14:44:49 -04:00
Behdad Esfahbod
e4a670cc7d
Make GlyphOrder object iterable
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
96b321c8ae
Fix comparison to arbitrary objects
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
843ffd8c79
Port glyf coordinates from numpy to custom type
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
4f033683ca
Port glyf transform from numpy to lists
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
bca6e99d1c
Port glyf flags from numpy to array module
2013-08-19 14:17:11 -04:00
Behdad Esfahbod
b1a7f87c2f
Port GPKG table from numpy to array module
2013-08-19 14:17:11 -04:00
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