Passing Twitter Emojis from TextEdit to Jit.gl.text2D

Randall Packer's icon

This is a rather arcane question, but we are using Node java scripting to bring live Tweets into Max. The Tweet is sent from Node to a TextEdit object where it shows up graphically . However, when the Tweet is passed from the TextEdit object to the jit.gl.text2D object for video rendering, the emoji disappears and disrupts the text display as seen in the screenshot. We are looking for a way to preserve the graphical emoji so that it renders properly as video in Jitter and doesn't disrupt the text.

Many thanks!! Randall Packer

Tweet overlay in which an emoji has caused the text to malfunction.

Rob Ramirez's icon

it's not clear to me what emojis render and which break. possibly has to do with the font selected. e.g. the open hand ✋ does not render but the closed fist ✊ does. It looks like if the ascii code is above some number they no longer render. You will probably have to run your own tests and make determinations of what and how to filter.

filtering is easy enough with atoi / itoa

Max Patch
Copy patch and select New From Clipboard in Max.

Randall Packer's icon

Thanks Rob for putting this test patch together! I have one question about your patch: is it filtering out the emoji that does not render, and letting through the emoji that does render?