Behdad Esfahbod
494d9d139e
Remove eexecOp C extension
...
It hasn't been working:
6102ba7500
And it's only used to load Type1 fonts, so who cares if the Python
implementation is slow...
2013-12-07 17:36:12 -05:00
Behdad Esfahbod
c745f69d8a
[subset] Remove unnecessary workaround
2013-12-07 16:06:14 -05:00
Behdad Esfahbod
6d658cf0ea
Minor
2013-12-07 16:06:10 -05:00
Behdad Esfahbod
3db5e11c1f
[subset] Remove redundant language systems
...
After subsetting, remove language systems that are effectively
the same as the default language system.
2013-12-07 12:54:44 -05:00
Behdad Esfahbod
b23b4cefda
Fix ClassDef
...
Ouch. Broke it in 63b257e677993295ee015e02b92ff438a5e91135.
2013-12-07 12:45:28 -05:00
Behdad Esfahbod
1a4f96b787
Remove total_ordering
...
Upon studying further, we don't need it. Since we only expect
comparing objects of the same type, just having __lt__ is enough.
2013-12-07 12:17:32 -05:00
Khaled Hosny
9c573019d5
Fix compiling back Times New Roman font
...
This has been broken since f2c2b4d38bd7bba23db71936262db984e4b7aebb,
assigning a new object to a function argument will not change the
original one, so we need to return the modified list.
2013-12-07 12:08:09 -05:00
Behdad Esfahbod
dc0ce0b498
py23 fixes for psLib and t1Lib
...
Still not working with Python 3 as psLib's PSTokenizer subclasses
StringIO and expects it to have buf and pos. Need to rewrite
this to implement StringIO internally.
2013-12-07 12:04:23 -05:00
Behdad Esfahbod
273a90074a
Return NotImplemented
2013-12-07 03:40:44 -05:00
Behdad Esfahbod
56da965344
Add @total_ordering to classes with __lt__
2013-12-07 03:35:16 -05:00
Behdad Esfahbod
8ea6439d3b
Implement __ne__ when __eq__ is defined
2013-12-06 22:25:48 -05:00
Behdad Esfahbod
ec9436d7f6
[subset] Remove unreferenced features
2013-12-06 21:58:41 -05:00
Behdad Esfahbod
9d2481bedf
[subset] Comments
2013-12-06 21:42:36 -05:00
Behdad Esfahbod
baa97d6f17
[subset] Minor
2013-12-06 21:12:05 -05:00
Behdad Esfahbod
98753abb91
Update table list for sbix
2013-12-06 19:55:29 -05:00
Behdad Esfahbod
e07cc6a9ca
Update MetaTools/buildTableList.py to reflect recent changes
2013-12-06 19:54:59 -05:00
Behdad Esfahbod
de85e4599f
2to3 sbix code
...
This seems to work now.
At some point we should go back and clean up and merge datastructures
between the four different color font formats.
2013-12-06 19:53:28 -05:00
Behdad Esfahbod
1b8cde1b6f
Fix imports
2013-12-06 19:41:49 -05:00
Behdad Esfahbod
4801a3ae39
Whitespace
2013-12-06 19:40:00 -05:00
Behdad Esfahbod
f1394f3fdd
Initial sbix support from Jens Kutilek
2013-12-06 19:35:09 -05:00
Behdad Esfahbod
d0a85754fe
Remove unused data
2013-12-06 17:56:28 -05:00
Behdad Esfahbod
1112495ae5
Simplify mac_epoch_diff
2013-12-06 17:56:09 -05:00
Behdad Esfahbod
65d3a02d16
Simplify date parsing
2013-12-06 17:47:14 -05:00
Behdad Esfahbod
b8e1afa809
Use struct format 'Q' to read/write 64bit integers
2013-12-06 17:26:09 -05:00
Behdad Esfahbod
5e36f854aa
Remove redundant code
2013-12-06 17:16:57 -05:00
Behdad Esfahbod
b1239d5c44
Add symlink from Tools/fontTools to Lib/fontTools
...
This way, running tools inside Tools/ uninstalled will run against
the source tree version of the library.
2013-12-04 23:11:18 -05:00
Behdad Esfahbod
05a2862a39
[subset] Ignore out-of-range glyphIDs
...
We don't want to support out-of-range glyphIDs in cmap or GSUB.
Explicitly drop them.
2013-12-04 23:07:55 -05:00
Behdad Esfahbod
ebcad976c8
[subset] Minor
2013-12-04 23:00:52 -05:00
Behdad Esfahbod
650a38fffc
Relax some warnings
2013-12-04 22:52:57 -05:00
Behdad Esfahbod
e5bee3716e
Allow converting 'glyphXXX' to glyphID
...
There was an inconsistency: when allowVID was False, we were allowing
gid->glyphXXX, but not the reverse. This was allowing some fonts to
be loaded, but then not to be written back. Fix that.
2013-12-04 22:46:29 -05:00
Behdad Esfahbod
e06166b83a
Fix SingleSubstFormat1 modulo math
2013-12-04 22:46:11 -05:00
Behdad Esfahbod
ebefbbaa58
Minor
2013-12-04 22:07:18 -05:00
Behdad Esfahbod
9a980a8d2d
Minor
2013-12-04 22:00:31 -05:00
Behdad Esfahbod
57fb7264a0
[subset] Minor
2013-12-04 21:56:53 -05:00
Behdad Esfahbod
43f6e36347
Simplify Coverage table postRead
2013-12-04 21:54:12 -05:00
Behdad Esfahbod
63b257e677
Handle out-of-range glyphIDs in ClassDef
2013-12-04 21:49:00 -05:00
Behdad Esfahbod
6bd43247f2
[subset] Add allowVID option to load_font()
...
Not enabled right now.
2013-12-04 21:34:05 -05:00
Behdad Esfahbod
dc87372c88
Use True/False instead of 1/0
2013-12-04 21:28:50 -05:00
Behdad Esfahbod
f4e39bf363
Convert warning to warnings module
2013-12-04 21:17:13 -05:00
Behdad Esfahbod
19d7cf2b5f
[subset] Handle non-existing ScriptList
...
As seen in CinzelDecorative-Regular.otf.
2013-12-04 21:13:11 -05:00
Behdad Esfahbod
9e6ef94b55
Use "is None" instead of "== None"
...
The latter hits the __eq__ method and can fail because we now
do not allow comparing objects of different types.
For example, was failing subsetting Andika-R.ttf.
2013-12-04 16:35:10 -05:00
Behdad Esfahbod
78c02b6af3
Fix T1CharString decompile()
...
self.program is never None; it's set to [] if using bytecode.
So fixup the check.
2013-12-04 13:16:49 -05:00
Behdad Esfahbod
cc13b7889d
Simplify
2013-12-04 04:12:57 -05:00
Behdad Esfahbod
94968f3151
Use pure-Python StringIO, not cStringIO
...
misc.psLib tries to subclass StringIO. It doesn't work with
the cStringIO version.
Change doesn't seem to affect performance of CFF, which is the
biggest StringIO user.
7279302238 (commitcomment-4767054)
2013-12-04 04:11:06 -05:00
Behdad Esfahbod
5a754ddd55
Merge pull request #60 from khaledhosny/master
...
Some fixes
2013-12-03 23:20:34 -08:00
Khaled Hosny
8851bcfd32
Add missing dot
...
Since 153ec402094adbea673e914385b87f1d99191d0b.
2013-12-04 08:54:12 +02:00
Khaled Hosny
ea48dba61d
Add missing opening parenthesis
...
Accidentally removed in 153ec402094adbea673e914385b87f1d99191d0b.
2013-12-04 08:47:26 +02:00
Khaled Hosny
95c722b5ce
Drop removed files from MANIFEST.in
2013-12-04 08:42:06 +02:00
Behdad Esfahbod
cc43f3a15c
Fixup
2013-12-04 01:17:21 -05:00
Behdad Esfahbod
153ec40209
Fix a few pychecker warnings
...
Fixes https://github.com/behdad/fonttools/issues/58
2013-12-04 01:15:46 -05:00