10-30-2019, 09:56 AM
(09-10-2019, 10:03 AM)lianli34312 Wrote: Hi Remy1961,
I am currently using 0.96" OLED for Moode. But it shows "???" when dealing with japanese/chinese songs. It there any solutions to add extra language library library pack?
Yes, it is working.
It is necessary to add UTF8 font and use function ttext instead od function text.
Code:
TRUETYPE_FONTS = {
'DejaVuSans28': { 'file':'DejaVuSans.ttf', 'size':28 },
'tsmall': { 'file':'DejaVuSans.ttf', 'size':8 },
'tlarge': { 'file':'DejaVuSans.ttf', 'size':12 },
}
WIDGETS = {
'artist': { 'type':'ttext', 'format':'{0}', 'variables':['artist'], 'font':'tlarge','varwidth':True,'effect':('scroll','left',1,1,20,'onloop',3,125)},
'title': { 'type':'ttext', 'format':'{0}', 'variables':['title'], 'font':'tsmall','varwidth':True,'effect':('scroll','left',1,1,20,'onloop',3,125)},