Post your questions and help other users.
Moderator: Martin
-
Philip
- Posts: 82
- Joined: 08 Jun 2015 19:20
- Location: Hampshire, UK
Post
by Philip » 21 Jan 2016 21:26
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?
--
Philip
-
Martin
- Posts: 4468
- Joined: 09 Nov 2012 14:23
Post
by Martin » 21 Jan 2016 21:57
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
-
Philip
- Posts: 82
- Joined: 08 Jun 2015 19:20
- Location: Hampshire, UK
Post
by Philip » 21 Jan 2016 22:09
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).
--
Philip