From 8ff652204f093d21ddd477541a8b1abeadd519b9 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 28 Nov 2023 14:11:39 +0200 Subject: [PATCH] Update src/PIL/ImageFont.py Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/ImageFont.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index 901903d827d..0331a5c458c 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -788,11 +788,11 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None): .. versionadded:: 4.2.0 :return: A font object. :exception OSError: If the file could not be read. - :exception ValueError: If the size given is invalid. + :exception ValueError: If the font size is not greater than zero. """ if size <= 0: - msg = "font size must be positive" + msg = "font size must be greater than 0" raise ValueError(msg) def freetype(font):