Commit Graph

115 Commits

Author SHA1 Message Date
Nulano
af2d976880 clarify default anchor alignment 2023-12-12 17:22:19 +01:00
Andrew Murray
c2d50881ee Added documentation 2023-10-14 11:01:57 +11: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
187e9a46af Improved documention of "corners" argument for rounded_rectangle 2023-06-14 11:21:43 +10:00
Andrew Murray
2f896ee4ac Clarify that line() and polygon() include xy pixels 2023-05-08 21:16:34 +10:00
Andrew Murray
3fc446c277 Added width argument to regular_polygon 2023-05-03 22:54:18 +10:00
Andrew Murray
16aa710c78 Updated documentation 2023-04-10 20:14:15 +10:00
Auto-5
16d235f8bc
Fix order of arguments in docstring 2023-03-17 18:08:19 +00:00
Andrew Murray
96e4e6160e Added release notes for #6961 and #6954 2023-03-04 21:00:18 +11:00
Andrew Murray
6e9c0ae5a0 Further document that x1 >= x0 and y1 >= y0 2023-02-28 22:49:04 +11:00
Hugo van Kemenade
7e8b11b159
Merge pull request #6954 from radarhere/corners 2023-02-26 18:29:35 +02:00
Andrew Murray
742aff3718 Replace Python code-blocks with double colons 2023-02-24 08:17:10 +11:00
Andrew Murray
0f2a4c1ae5 Added "corners" argument to rounded_rectangle() 2023-02-16 19:19:17 +11:00
Hugo van Kemenade
7a06bc6357
Merge pull request #6533 from nulano/document_imagedraw_attributes 2022-10-25 13:06:17 +03:00
Andrew Murray
fea604f693
Merge pull request #6556 from radarhere/returns
Improved documentation of ImageDraw return values
2022-10-03 19:06:58 +11:00
David Walker
64d11d9123 Improve documentation for ImageDraw.rectangle and rounded_rectangle
Fixes #1668
2022-09-29 22:38:51 -07:00
Andrew Murray
34f61d6d2d Updated redirected URLs 2022-09-23 22:13:50 +10:00
Andrew Murray
209ec9da47 Use target 2022-09-06 06:43:52 +10:00
Andrew Murray
780de80e5c Added examples for updating code 2022-09-03 22:23:05 +10:00
Andrew Murray
4783ecf41c Updated return values to match ImageFont 2022-09-03 21:09:44 +10:00
Andrew Murray
7966c344ac Improved documentation of return values 2022-09-01 22:26:35 +10:00
nulano
ced381edaa
Document ImageDraw attributes 2022-08-25 00:48:19 +02:00
Andrew Murray
8135bd5cfb Added documentation 2022-08-11 10:35:44 +10:00
Andrew Murray
729fe6f8b0 Updated indentation 2022-07-01 19:45:36 +10:00
nulano
ad5271d62f
Document replacements for individual deprecated font methods 2022-06-30 15:03:55 +02:00
Andrew Murray
65020e7c7c Documented deprecation in individual methods 2022-06-30 15:03:12 +02:00
Andrew Murray
675c5e1a9c Apply black formatting to code examples 2021-12-04 07:50:08 +11:00
Andrew Murray
db6e75156c Document polygon width parameter 2021-11-22 09:49:35 +11:00
Andrew Murray
b70384653e Corrected parameter order 2021-11-22 09:48:31 +11:00
Andrew Murray
bb12c8079e Added missing import 2021-04-29 21:35:57 +10:00
Andrew Murray
f5d49f4f61 Added rounded_rectangle method 2021-03-08 19:53:59 +11:00
Ondrej Baranovič
14671f715f
Merge branch 'master' into sbix 2021-03-07 20:05:25 +01:00
Andrew Murray
80e570bb99 Added context managers 2021-02-25 23:41:31 +11:00
nulano
61ee8ec03c document and add tests for SBIX color font support 2021-02-22 12:00:20 +11:00
Andrew Murray
3581600bf3 Clarified that "text" must be a string [ci skip] 2020-10-26 06:58:20 +11:00
nulano
d7a08cbd15 add color support to new text measuring functions 2020-10-12 16:05:19 +01:00
nulano
90e8255ba4 Merge remote-tracking branch 'upstream/master' into anchor-part3
# Conflicts:
#	Tests/test_imagefontctl.py
2020-10-12 15:50:45 +01:00
nulano
845bfda3ff fix docs formatting 2020-10-12 05:08:58 +01:00
nulano
b85fabca70
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-10-11 22:25:16 +02:00
nulano
be4d5221ad remove extra information 2020-10-11 21:21:38 +01:00
nulano
067a254366
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-10-11 21:55:32 +02:00
nulano
c80f123923 document ImageDraw.textlength and ImageDraw.textbbox 2020-10-09 01:43:23 +01:00
nulano
395aa946a9 add getbbox and getlength, with tests
Squashed commits:

[ec9ec31b] add tests for invalid anchor
(cherry picked from commit 9e50a6a47f79876ee56942152047f03fff03c49b)

[386a9170] fix lint and docs
(cherry picked from commit 2d0d5282fcfc3ee332a41e60b865ee766445cc3d)

[29f5d4c9] restore and document previous getsize behaviour
see discussion in issue 4789
(cherry picked from commit 9fbc94571ce0ed42fdd11e99f343a1613c9dc6d3)

[0ffd51a0] add getbbox and getlength, with tests
(cherry picked from commit c5f63737476a998c81e589e5819d21ca69bb7b46)
2020-10-09 00:56:58 +01:00
nulano
9151da162c add support for CBDT and embedded bitmaps in truetype fonts 2020-10-07 05:29:17 +01:00
nulano
82a28d12e2 add support for fonts with COLR data 2020-10-07 05:29:10 +01:00
nulano
e696bb06d8 update version numbers 2020-10-04 20:28:24 +01:00
nulano
a9b8dcba7d write anchor docs
(cherry picked from commit dcaee36941e6cb5e6f93186b6f819fb74887e0d3)
2020-09-22 14:58:17 +02:00
nulano
e6d4c2ce8f implement text anchor for truetype fonts
(cherry picked from commit bac9025918ccf944bac77addc130f33cf9d74701)
2020-09-19 15:17:45 +02:00
Tommy C
b142560488 Rename b_circle and bounding_circle + accept ((x0, y0), r)
Summary of changes

- Rename `b_circle` and `bounding_circle`
-`bounding_circle` now accepts both formats below:
    - (x0, y0, r)
    - ((x0, y0), r)
2020-08-22 20:19:23 +01:00
Tommy C
df9329f9f0 Replace bbox with b_circle, kwargs with args + minor tweaks
Summary of changes:
 - `ImageDraw.regular_polygon` now accepts a bounding circle which
inscribes the polygon. A bounding circle is defined by a center point
(x0, y0) and a radius. A bounding box is no longer accepted.
 - All keyword args have been replaced with positional args.

Misc
- Test image file renaming, minor variable name changes
2020-08-20 20:46:11 +01:00