This commit is contained in:
hibiki
2021-08-04 15:19:45 +08:00
parent b62399e203
commit 910af434ae
22 changed files with 571 additions and 700 deletions
+2 -1
View File
@@ -285,7 +285,8 @@ class CreateImg:
"""
说明:
检查文本所需宽度是否大于图片宽度
:param word: 文本内容
参数:
:param word: 文本内容
"""
return self.ttfont.getsize(word)[0] > self.w