0
\$\begingroup\$

I downloaded and specified to use a unicode font that supports musical symbols (Musica), but when I set the text value of the Text component to "𝄞" nothing is displayed? I tried using the unicode code point with \U as well. What is going wrong?

(I could not get TextMesh Pro working either with that symbol.)

\$\endgroup\$
5
  • \$\begingroup\$ I saw something about saving script in UTF-16 encoding in documentation, will try that this evening. \$\endgroup\$ – Emil Jan 19 at 8:08
  • \$\begingroup\$ How have you configured your font asset in the inspector? \$\endgroup\$ – DMGregory Jan 19 at 10:28
  • \$\begingroup\$ I have selected the font in the inspector. \$\endgroup\$ – Emil Jan 19 at 11:05
  • \$\begingroup\$ What I'm asking to see is this or this \$\endgroup\$ – DMGregory Jan 19 at 13:39
  • \$\begingroup\$ Thank you! You got me on the right track. I will write what I did in an answer, maybe you can give a btter answer after. \$\endgroup\$ – Emil Jan 19 at 19:58
1
\$\begingroup\$

How I did to display it with TMPro.TextMeshProUGUI:

Followed https://stackoverflow.com/a/13215070/3021108: ttx -t cmap Musica.ttf to get the unicode codes in it.

I clicked on Window > TextMeshPro > Font Asset Creator. Then I added the codes into Font Assert by using Unicode Range (Hex).

After I had added them it turned out the range was:

20-7E,A0,A4,A6-A7,AC,B0-B1,B6-B7,D7,F7,2002-200D,2012-2014,2016,2022,2212,2219,25CC,2669-266F,1D000-1D0F5,1D100-1D126,1D129-1D1E8,1D200-1D245,FD158-FD159,FD173-FD17A,FD1E0-FD20F

The characters look very pixly right now but at least they are not empty.

I did not get it working with Text component, maybe someone else can answer how to do that.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.