How to use "emoji" in Processing

edited January 2017 in Questions about Code

Hello, guys.

I would like to use "emoji" as font in my sketch. The following is my code. But It don't work well. It appears "tofu" not emoji. I'm happy if you know the way of solve this problem.


■Environment : Processing 3.2.3

■Folder : sketch_170115b.pde is my sketch file. I set my font in data folder folder

PFont myFont;

void setup() {
  size(200, 200);

  myFont = createFont("AppleColorEmoji.ttc", 24);
  textAlign(CENTER, CENTER);
  text(new String(Character.toChars(0x1F600)), width/2, height/2);
Sign In or Register to comment.