Commit Graph

242 Commits

Author SHA1 Message Date
Hugo van Kemenade
2c02146cf4
Use type hints and fix CVE role
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-07 12:32:30 +03:00
Hugo van Kemenade
d3c1d99d00 Deprecate support for FreeType 2.9.0 2024-09-06 14:51:30 +03:00
Andrew Murray
5cb79c6a69 Check object is bytes 2024-08-16 18:31:07 +10:00
Andrew Murray
726cdf5eed Added type hints 2024-07-25 22:55:49 +10:00
Hugo van Kemenade
563f45c355
Merge pull request #8141 from radarhere/freetypefont_bytes 2024-06-25 06:11:20 -06:00
Andrew Murray
42381aa1e6 Added type hints 2024-06-24 06:59:00 +10:00
Hugo van Kemenade
920698eea7
Merge pull request #8153 from radarhere/type_hint 2024-06-23 07:29:11 -06:00
Andrew Murray
1c8d270746
Merge pull request #8135 from mamg22/improved-xdg-dirs-support
Improve `ImageFont.freetype` support for XDG directories on Linux
2024-06-22 14:27:55 +10:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
mamg22
8d14a452df
Update test environment variable for ImageFont
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-15 19:50:10 -04:00
Andrew Murray
b3e3784b8e Added byte support to FreeTypeFont 2024-06-15 16:06:45 +10:00
mamg22
1175e53d53 Set XDG_DATA_HOME on font tests 2024-06-11 22:08:53 -04:00
Andrew Murray
1a14957c19 Added type hints 2024-06-09 15:16:17 +10:00
Andrew Murray
a6d1daeb4b Added type hints 2024-05-29 22:51:02 +10:00
Andrew Murray
e39765d755 Added type hints 2024-02-20 15:41:20 +11:00
Andrew Murray
5ff7d926fd Added type hints 2024-02-17 15:00:38 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests (#7756)
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Hugo van Kemenade
53c3cd9f8e isort Tests 2024-01-20 13:23:03 +02:00
Andrew Murray
2ec53e36e9 Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() 2023-12-31 23:17:28 +11:00
Andrew Murray
a16974e240 Restored testing of ImageFont class 2023-12-28 21:07:16 +11:00
Andrew Murray
6768d3aa91
Merge pull request #7497 from ZachNagengast/fix-alpha-for-overlapping-glyphs
Fix incorrect color blending for overlapping glyphs in BGRA mode
2023-12-24 19:03:28 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Andrew Murray
9a6c47a9d2 Merge branch 'main' into font 2023-12-04 22:25:58 +11:00
Andrew Murray
a6a612c6c5
Merge branch 'main' into fix-alpha-for-overlapping-glyphs 2023-12-02 21:33:29 +11:00
Zach Nagengast
e80002643d
Update Tests/test_imagefont.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-01 08:54:13 -08:00
Aarni Koskela
36e0b5312a
Update Tests/test_imagefont.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-29 09:21:51 +02:00
Aarni Koskela
39ec56c6ea Improve error message when creating TrueType fonts of invalid size
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-28 15:09:53 +02:00
Nulano
0cef9f251c fix drawing text alpha on RGBA image on big-endian platforms 2023-11-27 17:12:12 +01:00
Nulano
f3b3442c50 add test for glyph alpha blending 2023-11-27 16:25:04 +01:00
Andrew Murray
ae7958fa8d Handle pathlib.Path in FreeTypeFont 2023-11-27 23:03:10 +11:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Andrew Murray
0da7ad7c48 Merge branch 'main' into load_default 2023-10-14 10:33:50 +11:00
Andrew Murray
eccef36948 Added size argument to load_default() 2023-08-26 17:01:01 +10:00
Andrew Murray
1e5aa21fa8 Added improved font to load_default() if FreeType is available 2023-08-26 17:00:34 +10:00
Andrew Murray
ba9c830b03 Corrected writing I;16 text 2023-07-08 11:30:48 +10:00
Andrew Murray
d398fedb9d
Added underscores for readability
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-07-01 07:25:18 +10:00
Andrew Murray
1fe1bb49c4 Added ImageFont.MAX_STRING_LENGTH 2023-06-30 23:32:26 +10:00
Andrew Murray
7044038e70 Fixed decompression bomb check 2023-06-17 14:35:44 +10:00
Andrew Murray
16d82c2dfd Improved coverage 2023-06-10 19:37:54 +10:00
Andrew Murray
81a756e93b Support float font sizes 2023-04-22 13:45:18 +10:00
Andrew Murray
fa6cd4a195 Only check width and height of transposed fonts once 2023-04-10 17:34:33 +10:00
Hugo van Kemenade
adbb04d5dc Formatting for readability 2023-04-10 16:56:21 +10:00
Andrew Murray
b2301d70d1 Removed ImageFont.getsize and related functions 2023-04-10 16:56:13 +10:00
Hugo van Kemenade
c9f11565f1 Remove FreeTypeFont.getmask2 fill parameter, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c8ec15980b Remove constants deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Aarni Koskela
5c8a9165ab Fix up pytest.raises lambda: uses 2023-02-23 15:19:20 +02:00
Hugo van Kemenade
31f66ea963
Merge pull request #6445 from radarhere/set_variation_by_name 2022-10-28 13:21:30 +03:00
Andrew Murray
147c52f92f
Merge branch 'main' into winbuild-update 2022-10-14 12:20:34 +11:00
Hugo van Kemenade
eb59cb61d5
Merge pull request #6517 from radarhere/multiline_centered_embedded_color
Round box position to integer when pasting embedded color
2022-10-11 16:49:13 +02:00
Andrew Murray
7242a8a9ff
Merge branch 'main' into winbuild-update 2022-10-11 16:32:22 +11:00