Khaled Hosny
cf08265cd5
Black
2024-02-06 15:47:35 +02:00
Khaled Hosny
6025ec634e
Black
2023-12-04 18:25:34 +02:00
Cosimo Lupo
335a1e56ec
re-run black v23.10 on all .py files
2023-11-03 10:25:15 +00:00
Nikolaus Waxweiler
d584daa8fd
Blacken code
2022-12-13 11:26:36 +00:00
Just van Rossum
5fc65d7168
Misc py23 cleanups ( #2243 )
...
* Replaced all from ...py23 import * with explicit name imports, or removed completely when possible.
* Replaced tounicode() with tostr()
* Changed all BytesIO ans StringIO imports to from io import ..., replaced all UnicodeIO with StringIO.
* Replaced all unichr() with chr()
* Misc minor tweaks and fixes
2021-03-29 11:45:58 +02:00
Nikolaus Waxweiler
b5d2952c23
[afmLib] Do not write doctest file to disk
...
It writes into the current working dir on test runs.
2020-05-29 16:50:42 +01:00
Simon Cozens
94cb1759f7
[docs] Document afmLib ( #1933 )
2020-05-12 11:18:36 +01:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Miguel Sousa
ddff29cb5d
Fix DeprecationWarning: invalid escape sequence
2019-04-01 14:04:14 -07:00
justvanrossum
e0c275896b
modernized reading/writing code
2017-11-24 17:46:31 +01:00
justvanrossum
0eb40c6346
make poor old afmLib work on py3
2017-11-24 16:48:55 +01:00
Behdad Esfahbod
bd67253118
Some more whitespace fixes from pep8 tool
2015-04-26 01:59:01 -04:00
Behdad Esfahbod
5287b52d22
Whitespace
2015-04-26 00:49:36 -04: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
ea48dba61d
Add missing opening parenthesis
...
Accidentally removed in 153ec402094adbea673e914385b87f1d99191d0b.
2013-12-04 08:47:26 +02: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
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
b7fd2e1913
py23 Remove uses of __cmp__ and cmp()
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
c2297cd41d
2to3 --fix=dict with manual cleanup
2013-11-27 14:01:45 -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
3ec6a25823
2to3 --fix=print with manual fixup
2013-11-27 04:57:33 -05:00
Behdad Esfahbod
002c32fd0d
2to3 --fix=types with manual fixups
2013-11-27 04:48:20 -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
3a9fd30180
2to3 equivalent to --fix=tuple_params
...
I hope I got this all right...
2013-11-27 03:30:21 -05:00
Behdad Esfahbod
dc7e6f3e55
2to3 --fix=repr
2013-11-27 02:44:56 -05:00
Behdad Esfahbod
cd5aad92f2
2to3 --fix=raise
2013-11-27 02:42:28 -05:00
Behdad Esfahbod
bc5e1cb195
2to3 --fix=has_key
2013-11-27 02:33:03 -05: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
jvr
5910f97146
add default _attrs value so pickling AFM objects doesn't blow up
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@393 4cde692c-a291-49d1-8350-778aa11640f8
2003-05-24 12:50:47 +00:00
jvr
31ad351b75
allow negative advance widths
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@377 4cde692c-a291-49d1-8350-778aa11640f8
2002-11-26 14:09:52 +00:00
jvr
3c3c32c5a4
Charnames can contain a period anywhere, not just at the start.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@178 4cde692c-a291-49d1-8350-778aa11640f8
2002-03-12 14:34:43 +00:00
Just
6175debd67
improved API for creating AFM files from scratch
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@134 4cde692c-a291-49d1-8350-778aa11640f8
2001-06-24 15:11:31 +00:00
Just
32f868492c
- added support for composite info
...
- write attributes in a decent order
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@132 4cde692c-a291-49d1-8350-778aa11640f8
2001-04-30 14:40:17 +00:00
Just
7842e56b97
Created a new library directory called "FreeLib". All OpenSource RFMKII components will reside there, fontTools being the flagship.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@2 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-16 21:34:53 +00:00