Commit Graph

93 Commits

Author SHA1 Message Date
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
Tommy C
ac7d41545d Update regular_polygon args + arg checks
Summary of changes

- Allow positional args in `regular_polygon` method
- Allow multiple bounding box formats
    - (e.g. bbox = [(x0, y0), (x1, y1)] or [x0, y0, x1, y1])
- Check if bounding box is square
- Update var names
    - b_box => bbox
    - nb_sides => n_sides
2020-08-16 21:07:16 +01:00
Tommy C
0ed01dd964 Add ImageDraw.regular_polygon 2020-08-16 13:29:13 +01:00
nulano
9589159585 use cross-reference for None value 2020-07-10 00:08:27 +02:00
nulano
2761a02d13 fix module references
(cherry picked from commit b077850baa)
2020-06-27 15:33:55 +02:00
nulano
eab2260313 add docs for ImageDraw2 based on ImageDraw, fix ImageDraw links 2020-06-14 14:48:22 +02:00
Andrew Murray
402a59f6ec Fixed formatting [ci skip] 2020-06-08 13:17:08 +10:00
Hugo
cda682efc4 Parameter values in code formatting 2020-06-04 11:45:13 +03:00
Hugo van Kemenade
95f3f359b7
Fix name
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-06-03 11:23:24 +03:00
Hugo
14302aa53d Fix parameter formatting 2020-06-02 22:14:36 +03:00
Hugo
87de783226 Replace simple code formatting with :py:meth: markup 2020-06-02 21:48:53 +03:00
Hugo
087e42f743 Move OpenType docs link to a reference 2020-06-02 21:28:34 +03:00
Hugo
dc0c7bea37 Update ImageDraw docs formatting and links 2020-06-02 21:16:13 +03:00
Andrew Murray
b2f187c4ec Added multiline text example [ci skip] 2020-04-12 15:11:29 +10:00
Andrew Murray
04f7c75466 Use context manager when opening images [ci skip] 2020-02-29 10:29:44 +11:00
Hugo van Kemenade
0e993c4740
Merge pull request #4334 from radarhere/outline_width
Allow explicit zero width to hide outline
2020-02-15 14:30:12 +02:00
Andrew Murray
1c102fd040 Updated spacing defaults [ci skip] 2020-01-18 10:26:20 +11:00
Andrew Murray
56f30ef792 Allow explicit zero width to hide outline 2020-01-08 21:55:15 +11:00
Andrew Murray
f93a5d0972 Added text stroking 2019-07-29 06:40:03 +10:00
Jon Dufresne
8fac23b3df Clean up several Sphinx warnings
Appeared as:

    Pillow/docs/reference/ImageDraw.rst:137: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:164: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:177: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:208: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageStat.rst:24: WARNING: Explicit markup ends without a blank line; unexpected unindent.
2019-07-06 17:12:09 -07:00
Andrew Murray
31340bb3c6 Corrected names in documentation 2019-04-24 06:19:17 +10:00
Ben Yang
8bd4bbb808 implemented language parameter for multiline ImageDraw methods, updated release notes 2019-03-11 20:21:52 -07:00
Ben Yang
515244b672 moved language parameter in ImageDraw documentation 2019-03-11 18:56:22 -07:00