Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Emoji not drawn in 0.10.1

$
0
0

@linse wrote:

Hi there,

I tried to draw Emoji from the font Apple Color Emoji.ttf today and could not get it to work, the app window stays grey. For other fonts (Monaco.ttf) and ASCII characters ("hello"), the same call of drawString works fine.

I suspect this is an UTF-8 issue or I’m using drawString the wrong way for Emoji? I’m new to openframeworks and any help is appreciated! :slight_smile:

ofApp.cpp

[..]

void ofApp::setup(){
  // true, true, true loads the entire charset
  font.load("Emoji.ttf", 12, true, true, true); 
}

[..]

void ofApp::draw(){
  font.drawString("✊", 100, 100);
}

[..]

ofApp.h:

[..]
    ofTrueTypeFont font;
};

Thank you! :heart:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles