Skip to content

Commit 19f71b7

Browse files
authored
Merge branch 'main' into renovate/github-actions
2 parents 828468c + c214ad8 commit 19f71b7

File tree

4 files changed

+5
-23
lines changed

4 files changed

+5
-23
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
cibw_arch: arm64_iphoneos
100100
- name: "iOS arm64 simulator"
101101
platform: ios
102-
os: macos-latest
102+
os: macos-14
103103
cibw_arch: arm64_iphonesimulator
104104
- name: "iOS x86_64 simulator"
105105
platform: ios

docs/installation/platform-support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ These platforms are built and tested for every change.
4141
+----------------------------------+----------------------------+---------------------+
4242
| macOS 13 Ventura | 3.10 | x86-64 |
4343
+----------------------------------+----------------------------+---------------------+
44-
| macOS 14 Sonoma | 3.11, 3.12, 3.13, 3.14 | arm64 |
44+
| macOS 15 Sequoia | 3.11, 3.12, 3.13, 3.14 | arm64 |
4545
| | PyPy3 | |
4646
+----------------------------------+----------------------------+---------------------+
4747
| Ubuntu Linux 22.04 LTS (Jammy) | 3.10 | x86-64 |

src/PIL/ImageFont.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,7 @@ def get_variation_names(self) -> list[bytes]:
671671
:returns: A list of the named styles in a variation font.
672672
:exception OSError: If the font is not a variation font.
673673
"""
674-
try:
675-
names = self.font.getvarnames()
676-
except AttributeError as e:
677-
msg = "FreeType 2.9.1 or greater is required"
678-
raise NotImplementedError(msg) from e
674+
names = self.font.getvarnames()
679675
return [name.replace(b"\x00", b"") for name in names]
680676

681677
def set_variation_by_name(self, name: str | bytes) -> None:
@@ -702,11 +698,7 @@ def get_variation_axes(self) -> list[Axis]:
702698
:returns: A list of the axes in a variation font.
703699
:exception OSError: If the font is not a variation font.
704700
"""
705-
try:
706-
axes = self.font.getvaraxes()
707-
except AttributeError as e:
708-
msg = "FreeType 2.9.1 or greater is required"
709-
raise NotImplementedError(msg) from e
701+
axes = self.font.getvaraxes()
710702
for axis in axes:
711703
if axis["name"]:
712704
axis["name"] = axis["name"].replace(b"\x00", b"")
@@ -717,11 +709,7 @@ def set_variation_by_axes(self, axes: list[float]) -> None:
717709
:param axes: A list of values for each axis.
718710
:exception OSError: If the font is not a variation font.
719711
"""
720-
try:
721-
self.font.setvaraxes(axes)
722-
except AttributeError as e:
723-
msg = "FreeType 2.9.1 or greater is required"
724-
raise NotImplementedError(msg) from e
712+
self.font.setvaraxes(axes)
725713

726714

727715
class TransposedFont:

src/_imagingft.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,8 +1221,6 @@ font_render(FontObject *self, PyObject *args) {
12211221
return NULL;
12221222
}
12231223

1224-
#if FREETYPE_MAJOR > 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR > 9) || \
1225-
(FREETYPE_MAJOR == 2 && FREETYPE_MINOR == 9 && FREETYPE_PATCH == 1)
12261224
static PyObject *
12271225
font_getvarnames(FontObject *self) {
12281226
int error;
@@ -1432,7 +1430,6 @@ font_setvaraxes(FontObject *self, PyObject *args) {
14321430

14331431
Py_RETURN_NONE;
14341432
}
1435-
#endif
14361433

14371434
static void
14381435
font_dealloc(FontObject *self) {
@@ -1451,13 +1448,10 @@ static PyMethodDef font_methods[] = {
14511448
{"render", (PyCFunction)font_render, METH_VARARGS},
14521449
{"getsize", (PyCFunction)font_getsize, METH_VARARGS},
14531450
{"getlength", (PyCFunction)font_getlength, METH_VARARGS},
1454-
#if FREETYPE_MAJOR > 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR > 9) || \
1455-
(FREETYPE_MAJOR == 2 && FREETYPE_MINOR == 9 && FREETYPE_PATCH == 1)
14561451
{"getvarnames", (PyCFunction)font_getvarnames, METH_NOARGS},
14571452
{"getvaraxes", (PyCFunction)font_getvaraxes, METH_NOARGS},
14581453
{"setvarname", (PyCFunction)font_setvarname, METH_VARARGS},
14591454
{"setvaraxes", (PyCFunction)font_setvaraxes, METH_VARARGS},
1460-
#endif
14611455
{NULL, NULL}
14621456
};
14631457

0 commit comments

Comments
 (0)