File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 66__author__ = 'Simon Robinson'
77__copyright__ = 'Copyright (c) 2024 Simon Robinson'
88__license__ = 'Apache 2.0'
9- __version__ = '2024-07-29 ' # ISO 8601 (YYYY-MM-DD)
9+ __version__ = '2024-09-12 ' # ISO 8601 (YYYY-MM-DD)
1010__package_version__ = '.' .join ([str (int (i )) for i in __version__ .split ('-' )]) # for pyproject.toml usage only
1111
1212import abc
@@ -2771,6 +2771,7 @@ def get_icon_size(text, font_size):
27712771
27722772 # pillow's getsize method was deprecated in 9.2.0 (see docs for PIL.ImageFont.ImageFont.getsize)
27732773 if packaging .version .Version (importlib_metadata .version ('pillow' )) < packaging .version .Version ('9.2.0' ):
2774+ # noinspection PyUnresolvedReferences
27742775 font_width , font_height = font .getsize (text )
27752776 return font , font_width , font_height
27762777
You can’t perform that action at this time.
0 commit comments