mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
@@ -178,7 +178,7 @@ class BuildImage:
|
||||
self.paste_image_height = int(paste_image_height)
|
||||
self.current_w = 0
|
||||
self.current_h = 0
|
||||
self.font = ImageFont.truetype(str(FONT_PATH / font), int(font_size))
|
||||
self.font = ImageFont.truetype(str(FONT_PATH / font), font_size)
|
||||
if not plain_text and not color:
|
||||
color = (255, 255, 255)
|
||||
self.background = background
|
||||
|
||||
@@ -158,7 +158,7 @@ class RequestManager(StaticData):
|
||||
)
|
||||
ava.circle()
|
||||
age_bk = BuildImage(
|
||||
len(str(age)) * 10 - 5,
|
||||
len(str(age)) * 6 + 6,
|
||||
15,
|
||||
color="#04CAF7" if sex == "male" else "#F983C1",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user