You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, for example with uBit.display.print("Hi O갎o"), after the O it shows 3 "characters" that are essentially two pixels in a diagonal (갎 is 3 UTF-8 bytes 0xEA 0xB0 0x8E, which I can confirm is what I see in the compiled):
20240405_142529-1.mp4
The text was updated successfully, but these errors were encountered:
When a string is scrolled on the display, it gets each character from the font as a pointer, but it doesn't check if the pointer is valid:
codal-core/source/drivers/AnimatedDisplay.cpp#L147
When the requested character is out-of-range it returns a null pointer:
codal-core/source/types/BitmapFont.cpp#L111
So, for example with
uBit.display.print("Hi O갎o")
, after theO
it shows 3 "characters" that are essentially two pixels in a diagonal (갎
is 3 UTF-8 bytes0xEA 0xB0 0x8E
, which I can confirm is what I see in the compiled):20240405_142529-1.mp4
The text was updated successfully, but these errors were encountered: