Does Unity iPhone support the display of UTF-8 characters via the Unity GUI class? If not, is there a work around (GUISkin or GUIStyle) or must I find a different method (display as image)?
Does unity have a TTF font size limit? I'm running into problems with fonts like Arial Unicode MS and Bitstream Cyberbit and am wondering if their size is too large to handle as a texture due to the number of glyphs (50k and 30k, respectively).
Answer by Lipis
Mar 08, 2010 at 09:39 PM
Should work. Maybe the font that you are using doesn't support these characters. Try changing the font of the skin to something like Monaco or Verdana and check if you have the same result.
Clarification: The font applied in the GUI in Unity or the font used in the text editor?
@chrstopherbrown In the GUI in Unity.. if you change to Monaco can you see the squared?
I've been using Font Book in conjunction with Special Characters in order to see which glyphs any font contains. The only problem I'm running into at this point is that not all the characters in any given font will render in TextMate, let alone Unity. Another stickler seems to be Arial Unicode; it has over 50k glyphs but won't render nicely in Unity GUI at all!
I'm marking this as "the answer," though I don't feel I've received satisfaction at no fault of the community. It seems rendering mathematical equations in text as I would like to do is not what Unity was built to do. Back to the drawing board!
@chrstopherbrown actually I also have to deal with some mathematical equations in Unity.. so if you ever come up with an actual solution, just let me know somehow :) Maybe in version 3... it's coming soon!
Answer by Eric5h5
Mar 08, 2010 at 09:47 PM
The squared character displays fine with the built-in font, although naught doesn't. If you're not using the built-in font, for the squared character at least, make sure you're importing using Unicode and not ASCII. The naught character may need a custom font.
I have verified that the font encoding is Unicode when I increased the font size. No success yet using Monaco.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
No one has followed this question yet.
Umlaut shown as ?? in GUILayout.Button
GUI refresh time on platforms slower than Unity Editor
Block UnityGUI Hit
car controls gui
best way for a user to pick a date in unity for iphone