How to display emoji on roku normal labels. Isn't it possible?
Unfortunately it's not that simple. You do have a few options though:
- use a monochromatic font that looks like emojis (but they're actually font characters) such as OpenSansEmoji
- use something like EmojiOnRoku to have it split the label into multiple labels and posters (where posters are the emoji images)
I came across this issue recently too, for some icons.
I was expecting to be able to pass some unicode format to the text field for it to work. (This is how I do it with other native platforms)
I eventually used an app to generate a custom font, then assigned certain letters to certain icons. (eg: for play/pause/stop/ffwd/rewd). Works really nicely for a row of buttons using a MarkupGrid.
https://developer.roku.com/docs/references/scenegraph/label-nodes/multi-style-label.md
There is a component to do this.
The MultiStyle label will indeed allow for multiple fonts in the same label, but does not demonstrate how to programmatically pass unicode values to the text field.
Many native platforms have a specific 'u' format required.
https://www.toptal.com/designers/htmlarrows/punctuation/bullet/
Using chr(8226) would produce the bullet character if the font supports it.