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
Ben Yang
d5bbf01254
moved 'language' parameter to last parameter in relevant functions
2019-03-11 18:56:22 -07:00
Ben Yang
8624efd283
added ability to set language for text rendering
2019-03-11 18:55:46 -07:00
Andrew Murray
32c344b7ce
Added note about ImageDraw operations that exceed image bounds [ci skip]
2019-01-27 22:10:54 +11:00
Andrew Murray
1e305380ae
Merge pull request #3094 from hugovk/add-width-to-shapes
...
Add line width parameter to rectangle and ellipse-based shapes
2018-09-29 23:21:03 +10:00
Hugo
292fa6120e
'btt' (bottom to top) is not supported by libraqm
2018-09-18 13:41:55 +03:00
Hugo
e266b033d1
Update version added
2018-09-16 23:41:24 +03:00
Andrew Murray
53acbfc4d5
Added versionadded [ci skip]
2018-09-16 22:30:11 +10:00
Andrew Murray
f3842460ba
Added line joints
2018-09-16 21:29:09 +10:00
Hugo
fbe5bdb6b6
Also apply width to pieslice's inner lines
2018-09-01 14:40:36 +03:00
Hugo
d6e3ef85c2
Add width parameter to arc, chord, ellipse, pieslice
2018-07-02 11:26:42 +03:00
Hugo
9dedbff713
Add width parameter to rectangle
2018-07-02 11:21:30 +03:00
Andrew Murray
bf96b9f87a
Updated redirected URLs [ci skip]
2018-06-23 10:58:41 +10:00
Hugo
b6f337fa60
Clarify bounding box for arc, chord, ellipse, pieslice
2018-05-06 16:07:04 +03:00