Search Unity

TextMesh Pro Variation Selectors

Discussion in 'UGUI & TextMesh Pro' started by TrueNoob141, Oct 1, 2019.

  1. TrueNoob141

    TrueNoob141

    Joined:
    Sep 18, 2019
    Posts:
    30
    I trying display text that contains characters with Variation Selectors (i.e. two characters).
    How do it correctly? How TMP work with this?
     
    zitemzs likes this.
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    What do you mean by variation selectors?

    Do you mean like accessing the old-style numerals in a font?
     
  3. TrueNoob141

    TrueNoob141

    Joined:
    Sep 18, 2019
    Posts:
    30

    Attached Files:

  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Clearly not supported given I had to ask about the use case of variation selectors. :D

    Having said that, looks like these are defined in the CMAP of the font file so in theory, I should be able access this data.

    Adding this functionality will require an update to Unity so certainly possible in future versions of Unity but less likely in 2019.x for example.

    What is the use case for here?

    Given this is the first time this feature is requested, I am just trying to get a better understanding of the market... is this something commonly used for math type stuff?
     
  5. TrueNoob141

    TrueNoob141

    Joined:
    Sep 18, 2019
    Posts:
    30
    In my case, I have a prepared structured text file that needs to be showed correctly.
    If go deeper, then this file is prepared for the unity render in lua/js.
    lua/js used for text game and/or fast prototyping.
    This is a commercial project. The customer wants to see the behavior of the text "like in a browser" (use system fonts and selectors).

    I hope its helped you.
     
  6. VolvoCarsMrX

    VolvoCarsMrX

    Joined:
    May 5, 2020
    Posts:
    7
    any update regarding this?
     
  7. ETGgames

    ETGgames

    Joined:
    Jul 10, 2015
    Posts:
    101
    the chilli emoji uses a variation selector, causing it to have a empty box appearing next to the correct chilli emoji ️️

    will this be fixed / support for variation selectors be added?