Nikolaus Waxweiler
d584daa8fd
Blacken code
2022-12-13 11:26:36 +00:00
Khaled Hosny
232b2ccbc4
Move the rest of py23 module to textTools
...
Change all imports to use textTools module, except the test_py23.py test
which is kept until we decide to remove the module (if ever).
2021-08-20 01:29:45 +02: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
Chris Simpkins
7abf2e4c75
transition basestring
to str
...
https://github.com/fonttools/fonttools/issues/2232
2021-03-27 10:23:29 -04:00
Jan Sindler
15aa8dce79
hex above repr
2020-03-23 12:43:42 +01:00
Jan Sindler
13b2455675
init removed, back to inhereted namedtuple
2020-03-23 12:22:02 +01:00
Jan Sindler
08cd70e222
fixed spaces
2020-03-23 12:02:13 +01:00
Jan Sindler
0a33dbdc99
CPAL/Color, fromRGBA, added __init__, moved dunder repr to the dunder part of the Color class
2020-03-23 12:00:08 +01:00
Cosimo Lupo
f60bcc2c5a
[CPAL] the absence of a color palette label nameID is 0xFFFF, not 0
2020-02-17 17:03:37 +00:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Cosimo Lupo
173a0f5011
[C_P_A_L_] make Color a subclass of namedtuple
...
so that's comparable/hashable/immutable and can be used as key in a dict or set.
The fromXML instance method was dropped since it relied on the object being mutable.
A fromHex classmethod replaces it.
2019-02-08 01:16:47 +01:00
Behdad Esfahbod
349cd94d17
[graphite] Fix for big-endian
...
Make all "if sys.byteorder..." and "byteswap" be on the same line for
earsier grep verification.
Fixes https://github.com/fonttools/fonttools/issues/1311
2018-09-05 21:12:53 -07:00
Miguel Sousa
f502bbba98
[CPAL] write paletteEntryLabels names
2016-08-28 16:24:58 -07:00
Miguel Sousa
3c6537de88
[CPAL] remove extra newline before palette label name
2016-08-28 16:21:21 -07:00
Sascha Brawer
9f287353f3
[CPAL] Support CPAL table version 1
2016-04-27 13:15:45 +02:00
Sascha Brawer
9e7e77bdf4
[CPAL] Share color records when possible
2016-04-26 17:40:00 +02: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
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
faaca764a1
py23 Fixup isinstance(..., str) issues
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
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
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
3a9fd30180
2to3 equivalent to --fix=tuple_params
...
I hope I got this all right...
2013-11-27 03:30:21 -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
9d7dc22299
Add copyright notices
2013-09-19 20:03:02 -04:00
Behdad Esfahbod
50d9a44e58
Add support for Microsoft COLR/CPAL layered color glyphs
2013-08-19 14:16:06 -04:00