Print unicode symbols on display #719
-
|
Hello! I got small question - can I print unicode symbols on display? Everything I tried just return me error "AssertionError: Image height must be > 0" For example: And thank you for great app! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello @riodevelop lcd_comm.DisplayText("\u2600", 5, 180, font='./res/fonts/my-font.ttf') |
Beta Was this translation helpful? Give feedback.
Hello @riodevelop
It should be possible to display unicode symbols, but you need a font that supports it.
By default the
DisplayTextmethod uses the font./res/fonts/roboto-mono/RobotoMono-Regular.ttfthat does not have the☀unicode character.You can add your own font inside
res/fontsfolder and use it with theDisplayTextmethod: