Commit Graph

153 Commits

Author SHA1 Message Date
Andrew Murray
e533ccccfc Merge branch 'main' into imagetext 2025-10-15 19:38:38 +11:00
Andrew Murray
95a85dc669 Use snake case 2025-10-15 19:38:30 +11:00
Andrew Murray
4889863139 Renamed ImageText class to Text 2025-10-15 19:38:25 +11:00
Andrew Murray
3a580e0f79 Use _ensure_mutable 2025-09-09 21:04:16 +10:00
Andrew Murray
fcdeb6404e Merge branch 'main' into imagetext 2025-08-02 22:18:51 +10:00
Hugo van Kemenade
2ab301dcc9
Drop support for Python 3.9 (#9119)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-08-02 12:02:20 +00:00
Andrew Murray
969e468749 Allow ImageDraw text() to use ImageText 2025-07-24 19:34:30 +10:00
Andrew Murray
24681a3927 Added ImageText 2025-07-24 19:34:29 +10:00
Andrew Murray
a7e00fba8b Removed ImageDraw.getdraw hints parameter 2025-07-01 23:57:50 +10:00
Andrew Murray
26ae44e059 Merge branch 'main' into ttb 2025-06-28 13:49:43 +10:00
Hugo van Kemenade
c96b27711c
Improve justifying text (#8905) 2025-06-27 18:01:25 +03:00
Andrew Murray
7b163cc35d
Use mask in C when drawing wide polygon lines (#8984) 2025-06-10 11:46:12 +10:00
Andrew Murray
bc05a88ce6 Anchor left when justifying words 2025-04-17 20:56:02 +10:00
Andrew Murray
b955cee725 Do not justify last line 2025-04-17 19:36:52 +10:00
Andrew Murray
cccc07269a Do not justify a single word 2025-04-17 19:23:24 +10:00
Andrew Murray
4236b583a1 Do not import TYPE_CHECKING 2025-03-30 22:16:16 +11:00
Hugo van Kemenade
e4cac21044 Don't use start=0 in range() 2025-03-03 23:57:40 +02:00
Andrew Murray
a1a467bda2 Image.core.outline will no longer raise an AttributeError 2025-03-03 23:55:19 +11:00
Andrew Murray
f056c259a7 Support ttb multiline text 2025-02-06 22:30:09 +11:00
Andrew Murray
2810d7c6ba
Merge pull request #8721 from radarhere/justify
Added "justify" align for multiline text
2025-02-04 20:10:39 +11:00
Andrew Murray
10eaff8ac7 Added "justify" align for multiline text 2025-01-29 20:12:45 +11:00
Andrew Murray
7093de46a7 Moved common multiline code into _prepare_multiline_text 2025-01-29 19:42:25 +11:00
Andrew Murray
9a4f39588d Use embedded color for text length in multiline_text 2025-01-29 18:58:53 +11:00
Andrew Murray
0318304f9a Do not draw normal text onto stroke text if they are the same color 2025-01-18 21:58:15 +11:00
Andrew Murray
8d9279dd73 Only use outside border of stroke in text() 2025-01-18 21:58:04 +11:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
Andrew Murray
d5e3f6b516 If left and right sides meet, do not draw rectangle to fill gap 2024-08-15 14:46:23 +10:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Andrew Murray
726cdf5eed Added type hints 2024-07-25 22:55:49 +10:00
Andrew Murray
ab635be11b Removed unused argument 2024-07-24 22:08:15 +10:00
Hugo van Kemenade
51bd7d2ea8
Drop support for Python 3.8 (#8183)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-03 00:44:45 -06:00
Andrew Murray
d2b5e11d2b
Merge pull request #8032 from nulano/type_hints
Added type hints for PixelAccess related methods and others
2024-06-25 19:15:31 +10:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
Andrew Murray
9f79e5d768 Added type hints to ImageDraw shape methods 2024-06-19 08:43:23 +10:00
Nulano
31a8da48ee Merge remote-tracking branch 'upstream/main' into type_hints
# Conflicts:
#	src/PIL/Image.py
2024-06-12 21:06:31 +02:00
Andrew Murray
be73b13ad3 Added type hints 2024-06-12 21:15:55 +10:00
Hugo van Kemenade
7928bebd65
Merge pull request #8124 from radarhere/imagedraw_getdraw 2024-06-11 06:26:27 -06:00
Andrew Murray
4679e4bf9e
Updated deprecation warning 2024-06-10 16:47:52 +10:00
Andrew Murray
2d1fe7572f Added type hints 2024-06-10 14:15:28 +10:00
Andrew Murray
e225f9f589 Deprecate ImageDraw.getdraw hints argument 2024-06-10 11:50:13 +10: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
f5da04adb0 Added type hints
Co-authored-by: Nulano <nulano@nulano.eu>
2024-06-03 21:58:02 +10:00
Andrew Murray
d566c04d5b Updated type hints 2024-06-03 14:20:01 +10:00
Andrew Murray
6affb123c3
Merge branch 'main' into type_hints 2024-05-31 08:06:42 +10:00
void4
8db5fbead1
Update src/PIL/ImageDraw.py - set circle argument xy to type Sequence[float] instead of Coords, radius to float
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-27 13:27:56 +02:00
void4
38e6913579
Simplify circle() by reusing ellipse() 2024-05-27 13:01:10 +02:00
pre-commit-ci[bot]
2ee3cef50e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-26 22:25:16 +00:00
void4
2c4a6e1179 Add function and documentation to draw circle 2024-05-27 00:23:16 +02:00
Andrew Murray
73a3e4938c
Merge branch 'main' into type-annotations 2024-05-15 21:48:41 +10:00