Page 1 of 1

Emoji larger than 256 don't display in widgets

Posted: 21 Jan 2016 21:26
by Philip
Long-time LLama user switching over to Automagic here. I've been creating some custom widgets, and have encountered a bug/feature that I'd appreciate some help with.

I've created a widget with the text "Car <car emoji>" on it.
  • If the "text size" is 256 or less, then both the text and the emoji display fine.
  • If the text size is 257 or greater, then the word "Car" displays in the larger size, but the emoji does not display at all.
  • If the text size is 257 or greater, and Multiline is selected, then both the text and the emoji display fine (though obviously on two lines).
How can I display an emoji at size >256 on the same line as the text?

Re: Emoji larger than 256 don't display in widgets

Posted: 21 Jan 2016 21:57
by Martin
Hi,

Indeed, I can reproduce this problem at text size 257 but for me it's also not showing the emoji when multiline is ticked. I can also reproduce this phenomenon in a text editor app that let's me use such a huge font size so I suspect that it's some kind of internal Android limitation. Not sure if there's a good workaround for this.
You could draw the emoji to a separate image and place the image after the text field. However it could be difficult to place it dynamically when the text changes. You could make the widget smaller, use a smaller text size and then scale the widget on the home screen/overlay. Upscaling the widget often looks quite ok.

Regards,
Martin

Re: Emoji larger than 256 don't display in widgets

Posted: 21 Jan 2016 22:09
by Philip
Thanks for the confirmation.

I've just tried Multiline again and you are correct - it doesn't make any difference (i.e. emoji >256 do not display). Sorry about that.

I'm surprised that it's an Android limitation, though, as I'm currently using Minimalistic Text Widget to display the same information and the emoji is much larger (unless Minimalistic Text Widget is using some sort of scaling?)

I'll try the suggestions that you made (or I can live without the emoji, if necessary).