From 43a4477cd928f4c7da64b2d2f9e0d29d70ddaa47 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Dec 2023 19:20:37 +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..a28c8aba17c 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 =============