From 6cb8c9ba7267e5ed2e28332ce72ed7affbaeb802 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Dec 2023 19:04:04 +1100 Subject: [PATCH] Added release notes for #7584 and #7587 --- docs/releasenotes/10.2.0.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst index 41dd26826ab..ed73524cd45 100644 --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -20,10 +20,12 @@ TODO API Changes =========== -TODO -^^^^ +Zero or negative font size error +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +When creating a :py:class:`~PIL.ImageFont.FreeTypeFont` instance, either directly or +through :py:func:`PIL.ImageFont.truetype`, if the font size is not greater than zero, a +:py:exc:`ValueError` will now be raised. API Additions =============