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
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
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
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
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
153ec40209
Fix a few pychecker warnings
...
Fixes https://github.com/behdad/fonttools/issues/58
2013-12-04 01:15:46 -05:00
Behdad Esfahbod
83e2f34194
Implement compiling to ClassDef Format=1
2013-12-02 03:06:44 -05:00
Behdad Esfahbod
f2c2b4d38b
Improve composite glyph bounds calculation
...
Extend GlyphCoordinates to transparently support float coordinates.
As a result, transformed glyph components now don't have their
coordinates rounded anymore. This slightly changes bounding box
calculations.
There's also code added, but disabled, to calculate exact glyph
bounding box, but we don't seem to actually want that.
2013-12-01 13:36:09 -05:00
Behdad Esfahbod
81acddadbd
Add optional progress to DefaultTable
...
Such that if dumping glyf/CFF failed and falling back to DefaultTable
implementation, toXML will match.
2013-12-01 04:05:40 -05:00
Behdad Esfahbod
f918ab4cf6
Fix typos
...
From
4d2d8c9642
2013-11-29 17:12:43 -05:00
Denis Jacquerye
af1c9968b2
from __future__ imports must be first for python 3.3.2
...
adding \ to break lines in fontTools/misc/transorm.py
unneeded closing parenthesis in T_S_I__1.py
2013-11-29 16:03:42 -05:00
Behdad Esfahbod
3fa26d783f
py23 Use fixedToFloat() for fixed version numbers
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
1336105c31
py23 Use fixedToFloat() in glyf table
...
Sample output:
Before: <component ... scale="0.599975585938" flags="0x1004"/>
After: <component ... scale="0.6" flags="0x1004"/>
Now the Python 2 and 3 outputs agree on these.
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
fd68c9d251
py23 Fixup SING/META tables
...
They have been totally broken for years.
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
e388db566b
py23 Use new-style classes
...
Such that we get the same semantics in both Python 2 and 3.
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
1edfe57656
Strip name table records before writing to XML
...
They will be stripped reading back anyone, so any surrounding
whitespace will be lost. At least this way diffs of ttx files
are cleaner.
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
ca80208a15
Revert XML name table format changes
...
For the sake of separating py23 effort from feature changes,
I'm reverting the name table XML dump format back to what it
was. I will clean it up after py23 is merged.
2013-11-28 17:33:23 -05:00
Behdad Esfahbod
1a3909756d
Pad DSIG table to even length
...
Looks like other font generators do.
2013-11-28 17:32:44 -05:00
Behdad Esfahbod
5e1e8f6890
py23 More bytes fixes
2013-11-28 17:32:44 -05:00
Behdad Esfahbod
c0a9d697f6
Simplify read/writeUint24()
2013-11-28 17:32:44 -05:00
Behdad Esfahbod
2242b26742
Fix cmap UVS encode/decode on big-endian systems
...
Previous code didn't make any sense.
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
43e4b3d256
py23 cmap bytes fix
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
816df48e03
py23 Fix DSIG encoding/decoding
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
faaca764a1
py23 Fixup isinstance(..., str) issues
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
4be8db031d
Fix up EBLC/EBDT non-lazy decompile
...
Fallout from 3d8d5cd10d2d30ba9997b7cc43336e504111be9a.
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
6962f0cfb2
py23 XML encoding fixes
...
Name table entries that are Unicode are written out as native Unicode
now text in the XML now.
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
5f6418d9e1
py23 Turn Unicode XML parsing on; more bytes fixes
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
18316aa769
ps23 More bytes fixes. All ''join()'s fixed
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
821572c9a9
py23 Add bytesjoin()
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
5cf4008336
py23 tostr()/tobytes() and using them
...
ttf->xml seems to be mostly working now.
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
b7fd2e1913
py23 Remove uses of __cmp__ and cmp()
2013-11-28 17:32:42 -05:00
Behdad Esfahbod
960280bbd6
py23 Use more Tag()
2013-11-28 17:32:42 -05:00
Behdad Esfahbod
319c5fd10e
py23 introduce byteord() and use it
2013-11-28 17:32:42 -05:00
Behdad Esfahbod
d2f5d2f8b4
py23 use Tag in ttLib/__init__
2013-11-28 17:32:42 -05:00
Behdad Esfahbod
32c10eecff
py23 from __future__ import division and adjust divisions
2013-11-28 17:32:42 -05:00
Behdad Esfahbod
30e691edd0
py23 from __future__ import print_function
2013-11-27 17:27:45 -05:00
Behdad Esfahbod
ac4672e451
py23 Introduce Tag to autoconvert tag types
2013-11-27 16:44:53 -05:00
Behdad Esfahbod
b7a2d797a4
py23 Use bytechr() instead of chr()
2013-11-27 15:25:00 -05:00