Quantcast
Channel: Questions in topic: "icon"
Viewing all articles
Browse latest Browse all 271

How to display Emojis using a Text Mesh

$
0
0
Hi Everyone, I am making a 3D environment in Unity which is designed to retrieve Tweets and display them using Unity's TextMesh. The problem arises when a tweet includes an emoji [(emoticons such as smily faces)][1]. When a tweet includes one of these characters, unity renders them as either a "?" symbol, or the following symbol in the editor: ![What emoticons look like rendered in the Unity Editor][2] ...and like this when using a TextMesh: ![Emoticons rendered with a TextMesh using Myriad Pro font][3] ## What Do I Want? ## All I need is to represent any smiley/emoticon as character in the TextMesh, using a TTF font. I *don't need* to show a full colour image (like your browser/phone does) of the emoji. I realise that there are some extensions in the Unity store which allow you to do that - TextMesh Pro for example. If there's an easy way of doing this though, it would be better than plain characters. I am specifically looking to do this using TextMesh, not in any of the new GUI system components. ## Things I've Tried ## 1. You'd have thought that by downloading a font which contains characters for all of the emoticons you can imagine with their correct encoding, and using this as the font for the TextMesh would solve the problem. This was unfortunately not the case when I tried using Symbola (http://users.teilar.gr/~g1951d/). This, along with some other fonts rendered the "?" symbol despite having characters for the emoticons being used. [1]: https://en.wikipedia.org/wiki/Emoticons_(Unicode_block) [2]: /storage/temp/60475-screen-shot-2015-12-21-at-140104.png [3]: /storage/temp/60476-screen-shot-2015-12-21-at-130407.png

Viewing all articles
Browse latest Browse all 271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>