Hugo van Kemenade
91e820fb46
Merge pull request #6633 from radarhere/raqm
2022-10-10 09:16:10 +02:00
Andrew Murray
397167569a
Recommend raqm for non-English text
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-10-10 09:11:41 +11: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
Andrew Murray
74f47d8c1a
Document that basic layout is faster than raqm
2022-10-03 10:03:13 +11:00
Andrew Murray
ba78f5d0da
Document the default layout engine
2022-10-03 09:39:37 +11:00
Andrew Murray
34f61d6d2d
Updated redirected URLs
2022-09-23 22:13:50 +10:00
Andrew Murray
bce9df62f1
Rearranged text
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:19:47 +10:00
Andrew Murray
7359af91f0
Rearranged text
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:18:55 +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
c24b6ef4f0
Document workaround
2022-08-06 23:01:36 +10:00
Andrew Murray
42a5a743c1
Note to Windows users that FreeType will keep the font file open
2022-08-06 22:48:10 +10:00
Andrew Murray
8a6050ee5b
Replaced __internal__ argument with warning filters
2022-07-01 14:10:29 +02: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
Ondrej Baranovič
838b1f1598
add replacement for getsize_multiline to deprecation warning
2022-06-30 14:22:07 +02:00
pre-commit-ci[bot]
303ec1a95e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-06-30 12:21:43 +00:00
Ondrej Baranovič
f57a9d678c
update TransposedFont.getlength error message
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-06-30 14:20:56 +02:00
nulano
93acbcf9e2
add getbbox and getlength to TransposedFont with tests
2022-06-20 02:37:42 +01:00
nulano
c854bf8d1c
add getbbox and getlength to basic ImageFont and update related tests
2022-06-19 22:04:56 +01:00
nulano
406fe59242
deprecate font.getsize and related functions
2022-06-19 22:03:34 +01:00
Hugo van Kemenade
fbb74a6050
Merge pull request #6234 from radarhere/font_variant
...
If font is file-like object, do not re-read from object to get variant
2022-05-19 23:30:44 +03:00
Andrew Murray
bcded33cee
Merge pull request #6195 from hugovk/cleanup
...
Cleanup: various
2022-04-26 18:51:44 +10:00
Andrew Murray
a40c7a6bea
If font is file-like object, do not re-read from object to get variant
2022-04-22 07:31:20 +10:00
Hugo van Kemenade
bf46c6a648
Fix docstring
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-18 07:42:05 +03:00
Andrew Murray
a33dc56560
Merge pull request #6220 from nulano/deprecate-fill
...
Deprecate FreeTypeFont.getmask2 fill parameter
2022-04-18 08:05:10 +10:00
Ondrej Baranovič
995be34ddb
flip so the conditional is positive
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-17 19:27:14 +02:00
Andrew Murray
c87c2cf5b3
Added removal date for fill parameter
2022-04-17 10:03:50 +02:00
Andrew Murray
2a29b2dba1
Document that fill parameter is optional
2022-04-17 10:03:50 +02:00
nulano
b4b8249c9d
None is also not a valid value
2022-04-16 17:46:43 +02:00
nulano
a766b5b0d5
deprecate fill in imageFont
2022-04-16 17:07:32 +02:00
Andrew Murray
35fbf22250
Merge branch 'main' into cleanup-names
2022-04-16 19:49:40 +10:00
Hugo van Kemenade
7fa92c67b1
[Private] class names should be CamelCase
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
d241e38120
[Private] function names should be snake_case
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
965df6df6f
Add missing paramters to docstrings
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
935bdfa516
Use triple-quoted docstrings
2022-04-10 17:47:32 +03:00
Hugo van Kemenade
4cb8e4b3fa
Add deprecations helper
2022-04-06 13:19:52 +03:00
Andrew Murray
3c1e7a7f5a
Corrected docstring [ci skip]
2022-02-22 10:32:02 +11:00
Andrew Murray
b38a67fa12
Merge branch 'main' into enum
2022-02-10 09:52:24 +11:00
nulano
a278e0aa65
issue warning if Raqm layout is requested, but Raqm is not available
2022-02-07 23:57:35 +00:00
Andrew Murray
ed8073e846
Deprecated constants in favour of enums
2022-01-15 10:07:07 +11:00
Andrew Murray
f8e4e9c2dd
Added enums
2022-01-15 09:02:31 +11:00
Hugo van Kemenade
18d34b287f
Add support for pickling TrueType fonts
2021-11-10 14:34:20 +02:00
Hugo van Kemenade
606b5ae1e5
Remove support for FreeType 2.7 and older
2021-10-18 09:29:53 +03:00
Andrew Murray
ca3ad49de3
Fixed bug when checking FreeType2 version if it is not installed
2021-04-29 23:10:08 +10:00
Eric Soroos
ba65f0b08e
Fix Memory DOS in ImageFont
...
* A corrupt or specially crafted TTF font could have font metrics that
lead to unreasonably large sizes when rendering text in
font. ImageFont.py did not check the image size before allocating
memory for it.
* Found with oss-fuzz
* This dates from the PIL fork
2021-04-01 17:17:27 +03:00
Andrew Murray
043d8dac0b
Do not require packaging just for a DeprecationWarning
2020-12-18 23:42:16 +11:00
Hugo van Kemenade
27bf17009c
Deprecate FreeType 2.7, to be removed in Pillow 9 (2022-01-02)
2020-12-17 10:28:06 +02:00
Andrew Murray
4f0b9185a3
Fixed link formatting
2020-11-14 08:41:44 +11:00