Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by chrstopherbrown · Mar 08, 2010 at 09:27 PM · guiiphoneunicodeutf-8

UTF-8 Support in Unity iPhone 1.6?

I am trying to write some equations that using some special characters, such as naught () or squared (). I am using Javascript and authoring in TextMate. File encoding in TextMate is set to UTF-8. The characters render in TextMate. The characters even render in a call to Debug.Log. However, these characters won't render when used with the GUI class, such as GUI.Label.

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)?

Thanks, Christopher

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image chrstopherbrown · Mar 09, 2010 at 08:02 PM 0
Share

Does unity have a TTF font size limit? I'm running into problems with fonts like Arial Unicode $$anonymous$$S 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).

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

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.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image chrstopherbrown · Mar 08, 2010 at 09:43 PM 0
Share

Clarification: The font applied in the GUI in Unity or the font used in the text editor?

avatar image Lipis · Mar 08, 2010 at 11:24 PM 0
Share

@chrstopherbrown In the GUI in Unity.. if you change to $$anonymous$$onaco can you see the squared?

avatar image chrstopherbrown · Mar 09, 2010 at 07:19 PM 0
Share

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 Text$$anonymous$$ate, 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!

HUL$$anonymous$$ S$$anonymous$$ASH!

avatar image chrstopherbrown · Mar 10, 2010 at 08:18 PM 0
Share

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!

Thanks.

avatar image Lipis · Mar 10, 2010 at 08:47 PM 0
Share

@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 :) $$anonymous$$aybe in version 3... it's co$$anonymous$$g soon!

avatar image
1

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image chrstopherbrown · Mar 08, 2010 at 09:52 PM 0
Share

I have verified that the font encoding is Unicode when I increased the font size. No success yet using $$anonymous$$onaco.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Umlaut shown as ?? in GUILayout.Button 3 Answers

how to prevent unity iphone from changing the orientation of the game and GUI? 1 Answer

How do I convert from unicode to surrogate pairs? 2 Answers

How to drag a scrollView with TouchPhase.Moved? 0 Answers

rotated GUI behaving differently on iphone and ipad 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges