mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
update link in comment
This commit is contained in:
parent
d1edf86953
commit
a501ba9308
|
@ -259,7 +259,8 @@ class FreeTypeFont:
|
||||||
|
|
||||||
:return: (width, height)
|
:return: (width, height)
|
||||||
"""
|
"""
|
||||||
# vertical offset is added for historical reasons, see discussion in #4789
|
# vertical offset is added for historical reasons
|
||||||
|
# see https://github.com/python-pillow/Pillow/pull/4910#discussion_r486682929
|
||||||
size, offset = self.font.getsize(text, False, direction, features, language)
|
size, offset = self.font.getsize(text, False, direction, features, language)
|
||||||
return (
|
return (
|
||||||
size[0] + stroke_width * 2,
|
size[0] + stroke_width * 2,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user