Page 1 of 1

Graphic LCD font

Posted: Thu Mar 01, 2018 11:09 am
by speed
I am testing a graphic LCD with a SBC4 and python. I am trying to use the custom font, but it doesn't display anything. can you tell me what i am doing wrong?

Code: Select all

if(ch.getDeviceID() == DeviceID.PHIDID_1204):
    ch.setScreenSize(LCDScreenSize.SCREEN_SIZE_64x128)
ch.setFontSize(LCDFont.FONT_User2, 6, 8)
ch.writeText(LCDFont.FONT_User2, 10, 10, "XXX")
if i use ch.writeText(LCDFont.FONT_5x8, 10, 10, "XXX") it works fine.

Re: Graphic LCD font

Posted: Fri Mar 02, 2018 10:00 am
by mparadis
The custom font is empty by default. Have you used setCharacterBitmap to assign bitmaps to each letter?