Andrew Murray
|
a276cf2c9f
|
Use _typing alias
|
2024-02-08 18:48:38 +11:00 |
|
Andrew Murray
|
159fc068ca
|
Merge branch 'main' into type-hints-replace-io.BytesIO
|
2024-02-07 20:50:36 +11:00 |
|
Andrew Murray
|
5a8e7dda79
|
Added type hints
|
2024-02-05 20:36:34 +11:00 |
|
Hugo van Kemenade
|
d631afc266
|
Use os.fspath instead of isinstance and str
|
2024-01-26 20:46:58 +02:00 |
|
Hugo van Kemenade
|
945253672a
|
Handle os.PathLike in is_path
|
2024-01-26 19:17:44 +02:00 |
|
Andrew Murray
|
f71cfec76f
|
Merge pull request #7645 from nulano/font-bomb
Simplify FreeTypeFont.render
|
2024-01-04 23:50:43 +11:00 |
|
Andrew Murray
|
57096f55cf
|
Merge pull request #7642 from nulano/types-util
Add type hints to _util
|
2024-01-01 21:27:57 +11:00 |
|
Andrew Murray
|
af026fdd3c
|
Added decompression bomb check to ImageFont.getmask()
|
2024-01-01 16:06:09 +11:00 |
|
Andrew Murray
|
2ec53e36e9
|
Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask()
|
2023-12-31 23:17:28 +11:00 |
|
Nulano
|
30015f6236
|
simplify decompression bomb check in FreeTypeFont.render
|
2023-12-27 17:05:14 +01:00 |
|
Nulano
|
90d5552800
|
use _util.DeferredError.new everywhere
|
2023-12-27 14:55:30 +01:00 |
|
Hugo van Kemenade
|
0331d9d48b
|
Merge pull request #7560 from radarhere/string_length_check
|
2023-12-21 12:55:37 +02:00 |
|
Hugo van Kemenade
|
b638d056d5
|
Merge pull request #7548 from radarhere/imagefont
|
2023-12-21 12:55:20 +02:00 |
|
Andrew Murray
|
4c7eeec4fc
|
Merge pull request #7600 from nulano/anchor-clarify-docs
Clarify default anchor alignment
|
2023-12-13 07:36:00 +11:00 |
|
Nulano
|
af2d976880
|
clarify default anchor alignment
|
2023-12-12 17:22:19 +01:00 |
|
Andrew Murray
|
d042c4bc37
|
Added typing.IO to type hint
|
2023-12-04 22:26:14 +11:00 |
|
Andrew Murray
|
9a6c47a9d2
|
Merge branch 'main' into font
|
2023-12-04 22:25:58 +11:00 |
|
Nulano
|
984700b1f7
|
fix documentation link to PIL.ImageFont.Layout
|
2023-11-30 23:58:47 +01:00 |
|
Andrew Murray
|
13c1d752c6
|
Use enum in type hint
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
|
2023-12-01 08:42:25 +11:00 |
|
Andrew Murray
|
f23d029d5f
|
Moved error from truetype() to FreeTypeFont
|
2023-11-30 07:41:02 +11:00 |
|
Aarni Koskela
|
39ec56c6ea
|
Improve error message when creating TrueType fonts of invalid size
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
|
2023-11-28 15:09:53 +02:00 |
|
Andrew Murray
|
4bc365547a
|
Corrected type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
2023-11-28 21:43:58 +11:00 |
|
Andrew Murray
|
9e8edb42b6
|
Added type hint
|
2023-11-28 21:18:58 +11:00 |
|
Andrew Murray
|
ae7958fa8d
|
Handle pathlib.Path in FreeTypeFont
|
2023-11-27 23:03:10 +11:00 |
|
Andrew Murray
|
524b823c1b
|
Removed unnecessary string length check
|
2023-11-17 17:41:47 +11:00 |
|
Andrew Murray
|
f016d3079b
|
Determine mask mode in Python instead of C
|
2023-11-13 14:31:22 +11:00 |
|
Andrew Murray
|
c2d50881ee
|
Added documentation
|
2023-10-14 11:01:57 +11:00 |
|
Andrew Murray
|
0da7ad7c48
|
Merge branch 'main' into load_default
|
2023-10-14 10:33:50 +11:00 |
|
Hugo van Kemenade
|
4d66f9396b
|
Merge pull request #7247 from radarhere/getmask2_max_image_pixels
|
2023-10-05 09:28:04 -06:00 |
|
Andrew Murray
|
eccef36948
|
Added size argument to load_default()
|
2023-08-26 17:01:01 +10:00 |
|
Andrew Murray
|
1e5aa21fa8
|
Added improved font to load_default() if FreeType is available
|
2023-08-26 17:00:34 +10:00 |
|
Hugo van Kemenade
|
62cd236d1a
|
Clarify that a single value is returned, and depends on the text direction
|
2023-07-25 12:31:58 +03:00 |
|
Andrew Murray
|
74859e965d
|
Moved MAX_IMAGE_PIXELS check to Python
|
2023-07-01 20:52:44 +10:00 |
|
Andrew Murray
|
39a3b1d83e
|
Fixed deallocating mask images
|
2023-07-01 18:09:27 +10:00 |
|
Andrew Murray
|
d398fedb9d
|
Added underscores for readability
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
2023-07-01 07:25:18 +10:00 |
|
Andrew Murray
|
1fe1bb49c4
|
Added ImageFont.MAX_STRING_LENGTH
|
2023-06-30 23:32:26 +10:00 |
|
Hugo van Kemenade
|
8f3ccff8f2
|
Merge pull request #7206 from radarhere/text_layout
|
2023-06-13 20:31:24 +03:00 |
|
Andrew Murray
|
1756df4615
|
Removed unused private method
|
2023-06-10 20:24:34 +10:00 |
|
Andrew Murray
|
389ad11693
|
Only call text_layout once in getmask2
|
2023-06-10 17:10:42 +10:00 |
|
Andrew Murray
|
b2301d70d1
|
Removed ImageFont.getsize and related functions
|
2023-04-10 16:56:13 +10:00 |
|
Hugo van Kemenade
|
c9f11565f1
|
Remove FreeTypeFont.getmask2 fill parameter, deprecated in 9.2.0
|
2023-04-06 16:11:36 +03:00 |
|
Hugo van Kemenade
|
c8ec15980b
|
Remove constants deprecated in 9.1.0
|
2023-04-06 16:11:36 +03:00 |
|
Hugo van Kemenade
|
3cfdef395e
|
Merge pull request #7047 from nulano/freetype-import
Do not discard error message if _imagingft fails to import
|
2023-04-01 08:43:45 +03:00 |
|
nulano
|
b18efc775d
|
do not discard ImportError message in ImageFont
|
2023-03-31 01:48:17 +02:00 |
|
Andrew Murray
|
80edcd18d1
|
Do not render text if image has zero width or height
|
2023-03-17 20:11:35 +11:00 |
|
Hugo van Kemenade
|
8ef6503801
|
Merge pull request #6914 from radarhere/default
|
2023-03-12 12:39:45 +02:00 |
|
Andrew Murray
|
742aff3718
|
Replace Python code-blocks with double colons
|
2023-02-24 08:17:10 +11:00 |
|
pre-commit-ci[bot]
|
24183d652e
|
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
|
2023-02-06 19:27:19 +00:00 |
|
nulano
|
73f55b4e01
|
remove redundant default value
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
|
2023-01-28 15:35:33 +11:00 |
|
Hugo van Kemenade
|
2ae55ccbda
|
Improve exception traceback readability
|
2022-12-30 00:07:52 +02:00 |
|