Skip to content

Print unicode symbols on display #719

Answered by mathoudebine
riodevelop asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @riodevelop
It should be possible to display unicode symbols, but you need a font that supports it.
By default the DisplayText method uses the font ./res/fonts/roboto-mono/RobotoMono-Regular.ttf that does not have the unicode character.
You can add your own font inside res/fonts folder and use it with the DisplayText method:

lcd_comm.DisplayText("\u2600", 5, 180, font='./res/fonts/my-font.ttf')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@riodevelop
Comment options

Answer selected by riodevelop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants