This commit is contained in:
Lukas Schulz 2020-12-20 00:55:31 +01:00
parent 803aeb696c
commit e01eff0857

View file

@ -89,7 +89,7 @@ def drawCanvas():
songinfo.text((songinfo_offset_x,songinfo_offset_y+10), song_name)
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
showImage(canvas)
font = ImageFont.truetype()
font = ImageFont.load_default()
if(font.getsize(song_name)[0]>160):
x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10))
if(ImageDraw.textlength(artist_name)>160):