Skip to content

Commit f76d126

Browse files
aikaternafixator10
andauthored
[Leveler] Adjust vertical text line placement and info box width (#178)
Co-authored-by: Fixator10 <[email protected]>
1 parent 2d43c9a commit f76d126

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

leveler/image_generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,11 +684,11 @@ def _write_unicode(text, init_x, y, font, unicode_font, fill):
684684
offset = 195
685685
margin = 140
686686
txt_color = self._contrast(info_fill, white_color, dark_color)
687-
for line in textwrap.wrap(userinfo["info"], width=32):
687+
for line in textwrap.wrap(userinfo["info"], width=27):
688688
# for line in textwrap.wrap('userinfo["info"]', width=200):
689689
# draw.text((margin, offset), line, font=text_fnt, fill=white_color)
690690
_write_unicode(line, margin, offset, text_fnt, text_u_fnt, txt_color)
691-
offset += text_fnt.getsize(line)[1] + 2
691+
offset += 18
692692

693693
# if await self.config.badge_type() == "circles":
694694
# circles require antialiasing

leveler/leveler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Leveler(
2929
):
3030
"""A level up thing with image generation!"""
3131

32-
__version__ = "3.0.3"
32+
__version__ = "3.0.4"
3333

3434
# noinspection PyMissingConstructor
3535
def __init__(self, bot: Red):

0 commit comments

Comments
 (0)