Graphics

 View Only
  • 1.  Text/fonts with emoji

    Posted 06-06-2018 12:16
    Hi there!

    I've made a little something in DashBoard that gives me some strings from social media in a text field.
    However as you may know, people like to really pack that full of emojies.

    Is there any way to view those in Xpression as well?
    Anyone have experience with this?
    Kinda expecting a negative answer here, but it would be nice really...


  • 2.  RE: Text/fonts with emoji

    Posted 06-06-2018 23:36
    I've run into this problem as well. I don't think there is a way to display them. But would anyone know a way to search the string and remove them; just leaving the text?
    #XPression


  • 3.  RE: Text/fonts with emoji

    Posted 06-07-2018 09:29

    Here is a sample project that can do the trick : [ATTACH]n16273[/ATTACH]

    It dynamically generates text/quad image from a formatted text input.

    For example :
    we want to display "It's a beautiful day :) It's very cool ;) "

    Replace each emoji with a separator + code identification , so that it can be easily parsed :
    "It's a beautiful day|1|It's very cool|2"

    | is used as separator , and each emoji is assigned to a number that will match a image.

    The formatted string willbe split into a array : for each string a new xpTextObject or xpQuad is created and it's position is moved to be after the previous item.
    quad material is updated with matching image using SetVolatileTextureFile .



    #XPression