mamg22
|
2e15dc9f53
|
Improve xdg directory support in Linux
|
2024-06-11 22:00:08 -04:00 |
|
Andrew Murray
|
5bacce9dc2
|
Merge pull request #8046 from srittau/type-annotations
Add various type annotations
|
2024-06-08 18:38:21 +10:00 |
|
Andrew Murray
|
45cdc53bbb
|
Updated type hints
|
2024-06-08 18:03:06 +10:00 |
|
Andrew Murray
|
12559fffc5
|
Merge branch 'main' into type_hint
|
2024-06-04 08:18:14 +10:00 |
|
Andrew Murray
|
d566c04d5b
|
Updated type hints
|
2024-06-03 14:20:01 +10:00 |
|
Andrew Murray
|
1a6b0bb6b5
|
Removed documentation of unused argument
|
2024-05-25 19:30:20 +10:00 |
|
Sebastian Rittau
|
b2316f46cb
|
Use just str for _string_length_check
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
|
2024-05-18 11:22:57 +02:00 |
|
Andrew Murray
|
8a3a72e51d
|
Added type hints
|
2024-05-18 16:06:50 +10:00 |
|
Sebastian Rittau
|
6310280428
|
Move an import behind the TYPE_CHECKING flag
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
|
2024-05-11 10:44:52 +02:00 |
|
Sebastian Rittau
|
d63caf266d
|
Various fixes
|
2024-05-07 15:59:20 +02:00 |
|
Sebastian Rittau
|
d44e9fccb1
|
Various fixes
|
2024-05-07 14:53:26 +02:00 |
|
pre-commit-ci[bot]
|
1aa3886ed7
|
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
|
2024-05-07 12:34:02 +00:00 |
|
Sebastian Rittau
|
c92f59d758
|
Add various type annotations
|
2024-05-07 14:30:34 +02:00 |
|
Andrew Murray
|
a118a82c30
|
Use os.path.realpath consistently when os.fspath is used
|
2024-02-08 18:48:45 +11:00 |
|
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 |
|