Cosimo Lupo
b6145de7cb
[psLib] replace print with logger
2016-01-27 19:02:48 +00:00
Cosimo Lupo
d0b6bdafa0
[psLib] make PSTokenizer indipendent StringIO-like object; fix issues with python3 (bytes vs unicode)
...
PSTokenizer is now an indipendent object behaving like a StringIO.StringIO: it has `read` and `close` methods, as well as `buf`, `pos` and `len` attributes.
The input data is a string of bytes, and the output tokens are ascii-decoded unicode strings.
(I removed "__main__" as it was using a non-py23 EasyDialogs module)
See https://github.com/behdad/fonttools/issues/393 .
Related to https://github.com/behdad/fonttools/issues/391 .
2015-10-22 19:55:33 +01:00
Cosimo Lupo
565d36c511
[psLib] revert to StringIO.StringIO; temporarily drop support for py3
...
Reverts commit bf0e336d316518115a7b47da4f721bb8a009b3e1
Fixes https://github.com/behdad/fonttools/issues/391
...though only temporarily.
2015-10-21 13:14:48 +01:00
Cosimo Lupo
bf0e336d31
replace all 'StringIO' with 'BytesIO'
2015-08-07 17:25:22 +01:00
Behdad Esfahbod
df2906b0ad
Fix a few issues found by landscape.io
2015-04-26 02:17:13 -04:00
Behdad Esfahbod
b30e12ae00
More whitespace
2015-04-26 02:01:01 -04:00
Behdad Esfahbod
bd67253118
Some more whitespace fixes from pep8 tool
2015-04-26 01:59:01 -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
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
7279302238
py23 fixes for psLib
2013-11-29 16:31:21 -05:00
Behdad Esfahbod
b49aa66e61
Revert "Remove unused fontTools.misc.psLib"
...
psLib is still used by t1Lib. I'm not sure whether I want to
drop t1Lib just yet.
This reverts commit e0f84aabfaea36a5a4e1dc161b6c47c3a0bc4e1b.
2013-11-29 16:31:00 -05:00
Behdad Esfahbod
e0f84aabfa
Remove unused fontTools.misc.psLib
2013-11-24 19:59:07 -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
a983e66970
- turned ps exceptions into classes and renamed them
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@550 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-11 07:25:29 +00:00
jvr
1e59feca35
finally upgraded psLib to use re instead of the long obsolete regex module.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@271 4cde692c-a291-49d1-8350-778aa11640f8
2002-06-04 19:11:03 +00:00
Just
b68a700595
don't print extra error info to stdout
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@136 4cde692c-a291-49d1-8350-778aa11640f8
2001-06-24 15:14:06 +00:00
Just
344757f42d
minor cleanups
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@131 4cde692c-a291-49d1-8350-778aa11640f8
2001-04-20 18:39:21 +00:00
Just
528614e6e2
Moved psCharStrings.py, psLib.py and psOperators.py to fontTools.misc, since they're not "toplevel" font tools.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@59 4cde692c-a291-49d1-8350-778aa11640f8
2000-01-16 22:14:02 +00:00