Behdad Esfahbod
83a89c123f
Fix isComposite with empty glyphs
...
Was broken in 626107c8.
2014-06-25 19:02:04 -06:00
Behdad Esfahbod
487b15fd94
Add a few __delitem__ implementations
2014-05-14 13:51:10 -06:00
Behdad Esfahbod
1ae29591ef
from __future__ import absolute_import
...
Such that our Python 2 is closer to Python 3.
Part of https://github.com/behdad/fonttools/issues/77
2014-01-14 15:07:50 +08: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
273a90074a
Return NotImplemented
2013-12-07 03:40:44 -05:00
Behdad Esfahbod
8ea6439d3b
Implement __ne__ when __eq__ is defined
2013-12-06 22:25:48 -05:00
Behdad Esfahbod
dc87372c88
Use True/False instead of 1/0
2013-12-04 21:28:50 -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
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
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
5f6418d9e1
py23 Turn Unicode XML parsing on; more bytes fixes
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
821572c9a9
py23 Add bytesjoin()
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
319c5fd10e
py23 introduce byteord() and use it
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
7ed91eca1e
py23 import in all nontrivial source files and unused import cleanup
2013-11-27 15:25:00 -05:00
Behdad Esfahbod
14fb031125
Remove most uses of module string
2013-11-27 14:01:44 -05:00
Behdad Esfahbod
b774f9f684
2to3 --fix=types manual additions
...
Don't know why the tool didn't catch these.
2013-11-27 14:01:44 -05:00
Behdad Esfahbod
e5ca79699d
2to3 --fix=map with manual cleanup
2013-11-27 04:38:16 -05:00
Behdad Esfahbod
ac1b435946
2to3 --fix=idioms
2013-11-27 04:15:34 -05:00
Behdad Esfahbod
97dea0a5d0
2to3 --fix=xrange
2013-11-27 03:34:48 -05:00
Behdad Esfahbod
3a9fd30180
2to3 equivalent to --fix=tuple_params
...
I hope I got this all right...
2013-11-27 03:30:21 -05:00
Behdad Esfahbod
cd5aad92f2
2to3 --fix=raise
2013-11-27 02:42:28 -05:00
Behdad Esfahbod
180ace6a5f
2to3 --fix=ne
2013-11-27 02:40:30 -05:00
Behdad Esfahbod
2b06aaa2a6
2to3 --fix=import
2013-11-27 02:34:11 -05:00
Behdad Esfahbod
bc5e1cb195
2to3 --fix=has_key
2013-11-27 02:33:03 -05:00
Behdad Esfahbod
66214cbe8c
2to3 --fix=apply
2013-11-27 02:18:18 -05:00
Behdad Esfahbod
3d8d5cd10d
Port ttLib to respect font.lazy
...
I *hope* I didn't break anything...
Notably, cffLib is not ported yet.
2013-11-24 19:58:57 -05:00
Roozbeh Pournader
dec666aa05
Only modify the loca table is there is such a table.
2013-11-14 18:52:15 -05:00
Behdad Esfahbod
cd4fac4f4a
Avoid overflow when compiling glyf table
...
https://github.com/behdad/fonttools/pull/25
2013-11-14 17:07:35 -05:00
Behdad Esfahbod
c55d592661
Remove unreachable code
2013-11-14 17:07:16 -05:00
Behdad Esfahbod
0ba7aa7ab5
Make __cmp__() functions stable
2013-10-28 12:07:15 +01:00
Behdad Esfahbod
2e998ea692
Fix GlyphCoordinates slicing
...
Based on patch from Roozbeh.
2013-09-29 14:02:27 -04:00
Behdad Esfahbod
043108cbdb
[subset] Fix glyf component closure
...
https://github.com/behdad/fonttools/pull/11
2013-09-27 16:29:50 -04:00
Behdad Esfahbod
bb56ddb971
Fix composite glyph coordinate routines
...
Ouch, was modifying the component's own coordinates before.
2013-09-20 16:36:10 -04:00
Behdad Esfahbod
70fee1648a
Fix glyph removeHinting re padding
2013-09-20 16:36:05 -04:00
Behdad Esfahbod
626107c833
Move some methods from subset.py to 'glyf' table implementation
2013-09-20 16:36:00 -04:00
Behdad Esfahbod
8413c108d2
Move sstruct under fontTools.misc
...
Our footprint in the Python module namespace is all under
fontTools now. User code importing sstruct should be updated
to say "from fontTools.misc import sstruct".
2013-09-17 16:59:39 -04:00
Behdad Esfahbod
9316a90e32
Fixup from numpy removal
2013-09-04 13:50:38 -04:00
Behdad Esfahbod
2058dcfb68
More GlyphCoordinates fixup
...
I'm sure it's correct this time, though I couldn't reproduce the latest
issue Dave was hitting.
2013-09-04 10:49:21 -04:00
Behdad Esfahbod
e9ea5a0a10
Really fix GlyphCoordinates this time
...
Argh. I should stop committing without proper time to test first.
https://github.com/behdad/fonttools/issues/4
2013-09-04 10:39:51 -04:00
Behdad Esfahbod
71d76fa1b8
Fix GlyphCoordinates
...
It's embarrassing that I failed to test ttx completely.
https://github.com/behdad/fonttools/issues/4
2013-09-04 10:14:44 -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
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
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
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