Emoji and ofxFTGL?

Hi - I’m using ofxFTGL to display unicode text from Twitter (could be in any language, using any character set).
It’s crashing on Emoji characters. Either I would like to detect and strip out the Emoji, or even better, find a way to display them as well. Any advice greatly appreciated!

also ofxTrueTypeFontUC can draw emoji and unicode chars.
https://github.com/hironishihara/ofxTrueTypeFontUC

![](http://forum.openframeworks.cc/uploads/default/2849/Screen Shot 2013-04-01 at 8.02.12 AM.png)

Brilliant - thankyou Akira Hayasaka! ofxTrueTypeFontUC does the job.

Since I am asking the exact same question as this thread, I deemed it not a double post. Here is an example implementing your fontclass/methods from the ofxTrueTypeFontUC addon, but I am not able to display emoji. Help?

code below (sorry the code brackets were not working for me. ive also attached my .cpp file):

[code=cpp]

#include “testApp.h”
#include “ofxTrueTypeFontUC.h”
//--------------------------------------------------------------
void testApp::setup(){

ofBackground(255,255,255);
myEmoji.loadFont("/System/Library/Fonts/Apple Color Emoji.ttf", 72, true, true);
myWingD.loadFont("/Library/Fonts/Wingdings.ttf", 72, true, true);

//myEmoji.loadFont("/Library/Fonts/Wingdings.ttf", 36, true, true, true);

}

//--------------------------------------------------------------
void testApp::update(){

}

//--------------------------------------------------------------
void testApp::draw(){
ofSetColor(0, 90, 60);
ofFill();
face = "

![](http://forum.openframeworks.cc/uploads/default/3070/Screen Shot 2013-11-02 at 2.26.55 AM.png)

testApp.cpp

I’ve implemented your methods, and I don’t see emoji working at all. Could you maybe elaborate?

Hi Daniel,

Did you ever get a solution to this problem?