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):