Hugo van Kemenade
e42aec8c90
Update Black target to py36
2020-07-27 17:02:10 +03:00
Andrew Murray
4ae694cd7b
Merge pull request #4712 from cool-RR/2020-06-12-raise-from
...
Fix exception causes all over the codebase
2020-06-28 15:22:05 +10:00
Hugo van Kemenade
390b34c231
Merge pull request #4664 from nulano/ft-getsize-mode
2020-06-21 18:53:03 +03:00
Ram Rachum
2f0d430807
Fix exception causes all over the codebase
2020-06-21 13:21:25 +03:00
nulano
097104278b
add docs for features module
2020-06-13 04:28:02 +02:00
nulano
9fbd35fe87
use mode for getsize
2020-06-01 22:18:38 +02:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Andrew Murray
dd8b0de666
Close excusively opened images
2020-02-18 20:49:05 +11:00
Andrew Murray
6cd99fc3cf
Merge branch 'master' into rm-2.7
2019-10-08 18:57:27 +11:00
Jon Dufresne
64032061c0
Move several imports to the top-level of the file
...
This better follows PEP 8 style guide:
https://www.python.org/dev/peps/pep-0008/#imports
> Imports are always put at the top of the file, just after any module
> comments and docstrings, and before module globals and constants.
This also avoids duplicate import code within the same file.
2019-10-07 06:28:36 -07:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Hugo
af770a6c55
Drop support for EOL Python 2.7
2019-10-07 14:30:59 +03:00
Andrew Murray
da39d40342
Merge pull request #3978 from radarhere/stroke
...
Added text stroking
2019-09-06 19:14:49 +10:00
Hugo van Kemenade
e980d023db
Merge pull request #3969 from radarhere/encoding
...
Documented more encoding values
2019-09-04 16:51:13 +03:00
Andrew Murray
86c64aafd2
Formatted text [ci skip]
2019-08-12 20:43:32 +10:00
Andrew Murray
eb0a61a47e
Simplified text [ci skip]
...
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2019-08-12 20:42:27 +10:00
Andrew Murray
b307fb4808
Noted a Windows limit on opening fonts [ci skip]
2019-08-12 20:19:49 +10:00
Andrew Murray
8fb437d37f
Improved ImageFont documentation [ci skip]
2019-08-12 20:04:18 +10:00
Andrew Murray
f93a5d0972
Added text stroking
2019-07-29 06:40:03 +10:00
Andrew Murray
dfed1424d1
Improved ImageFont documentation
2019-07-25 20:04:45 +10:00
Andrew Murray
c76369ce87
Explain that encoding does not alter text
2019-07-16 19:28:54 +10:00
Andrew Murray
0427170db5
Documented more encoding values
2019-07-15 19:04:35 +10:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Andrew Murray
7bb16de81c
Fixed crash when loading non-font bytes
2019-06-23 11:53:01 +10:00
Andrew Murray
da16b7ec45
Added variation font support
2019-06-19 20:27:49 +10:00
Hugo
2334040f56
Merge pull request #3860 from olt/non-ascii-quotes
...
Replace non-ascii quotes from docstring
2019-06-19 12:03:14 +03:00
Hugo
cab7231e2a
Format with Black
2019-06-11 11:42:05 +03:00
Hugo
53a7e35004
Format with Black
2019-06-10 18:22:46 +03:00
Oliver Tonnhofer
26b71998d2
Replace non-ascii quotes from docstring [ci skip]
2019-05-24 12:09:14 +02:00
Andrew Murray
69b733d5f1
Changed if to elif
2019-05-04 23:05:07 +10:00
Andrew Murray
568fc2def8
Simplified code
2019-05-04 23:05:07 +10:00
Hugo
e20228a60a
Merge pull request #3785 from radarhere/unicode_path
...
Fixed loading font with non-Unicode path on Windows
2019-05-04 15:55:50 +03:00
Hugo
9a71c9517e
Apply suggestions from code review
...
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
2019-04-24 06:16:15 +10:00
Andrew Murray
93b96a6cb8
Improved documentation
2019-04-21 23:27:31 +10:00
Andrew Murray
4e6aa7d6d3
Fixed loading font with non-Unicode path on Windows
2019-04-10 07:04:59 +10:00
Ben Yang
d5bbf01254
moved 'language' parameter to last parameter in relevant functions
2019-03-11 18:56:22 -07:00
Ben Yang
1a075bed52
added language parameter to ImageFont.FreeTypeFont.getmask()
2019-03-11 18:56:22 -07:00
Ben Yang
8624efd283
added ability to set language for text rendering
2019-03-11 18:55:46 -07:00
Hugo
c353225851
Prefer 'except Exception:' to bare 'except:'
2018-12-04 23:25:28 +02:00
Andrew Murray
929f7397db
Line too long
2018-10-21 18:26:08 +11:00
Andrew Murray
a8261a2e89
Line too long
2018-09-27 20:35:00 +10:00
Andrew Murray
c2189235af
Line too long
2018-07-02 19:26:02 +10:00
tianyu
b77e89b286
Added getsize_multiline support for ImageFont
2018-04-24 22:26:52 +08:00
Andrew Murray
b4e6cdadac
Added py3 variable to _util
2018-04-20 09:19:13 +10:00
Andrew Murray
2202196162
Flake8 blank line fixes
2018-03-04 21:36:33 +11:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00