Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Spock · May 28, 2013 at 06:28 AM · bugunity4

Dynamic Font On Android Can't display some texts

I am using Unity4.1.2f1 with the newest NGUI plugin. And I create a dynamic font prefab with Arial true type font. Then I create two NGUI Label with this dynamic font prefab, one label with some Chinese words and one with some Korean words.But I compiled the demo onto my android device, there was a weird problem: I tested the demo on two Nexus4 device with Android 4.2.2, on one device the Chinese couldn't display but on another the Korean couldn't display. And I logged the results of the Font.GetCharacterInfo, I found when the device can't display Chinese/Korean, the characterInfo was invalid, such as the xMin and xMax of uvs was the same, so the text size is 0. Then I tested the same demo on my SAMSUNG I9100 device with Android 2.3.5, both Chinese and Korean displayed correctly.

So I guess there is a issue with the dynamic font in Unity, can anyone kindly help me to fix this issue?

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 meat5000 ♦ · Oct 14, 2013 at 08:17 AM 0
Share

Does Android support dynamic font??? I think iOS doesn't so I'm reckoning Android doesn't either.

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by particled · Oct 14, 2013 at 08:14 AM

Submitted bug report with repro months ago, never heard back. Responded on this thread, too, comment was never accepted. 552747, 552752.

Comment
Add comment · Show 12 · 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 meat5000 ♦ · Oct 14, 2013 at 08:16 AM 0
Share

$$anonymous$$aybe you posted as an answer and it was converted to comment invoking the -1 Answers bug and losing your comment to the Ether forever. It happens.

avatar image particled · Oct 14, 2013 at 08:20 AM 1
Share

Wow. That is a suboptimal bug. Thanks for the explanation.

avatar image meat5000 ♦ · Oct 14, 2013 at 08:21 AM 0
Share

So with 2Dtoolkit I can dynamically place text on GUI buttons for example?

avatar image Fattie · Oct 14, 2013 at 08:27 AM 0
Share

@meat - that is utterly and totally correct. it, literally, could not be easier.

LOO$$anonymous$$ at the image I posted in the other long answer linked above. LOO$$anonymous$$ at the yellow "x33" (bottom of second image)

It's literally this simple ... scoreObject.text = "33"; scoreObject.commit();

you just se the ".text" to what you want, and go "commit()"

it's all done in one draw call. it works on every platform. it's ALWAYS the CORRECT SIZE utterly regardless of screen resolution or anything else.

there's, realistically, no other approach that is viable in Unity. the weeks, months, you spend trying to figure out unity's dynamic/whatever android/whtever type .. it will litreally take you 1 $$anonymous$$utes to download 2DTk, 3 $$anonymous$$utes to figure out how to click "Add Text $$anonymous$$esh", and 1 $$anonymous$$ute to figure out how to change the text in code.

"dynamically place text on GUI buttons" we work for clients on a number of million-user games you play everyday, literally every single project we touch we just scrap every aspect of typography and click in 2DT$$anonymous$$.(which takes like '2 $$anonymous$$utes') the only way I would even be able to approach dynamic text on buttons, is this pipeline - I mean you could assign one, two man months to just figuring out unity dynamic whatever bugs etc.

if you talking for UI, you may prefer a second camera just for the UI. if it's a 2D game (sidescroller or the like), just sit the score or whatever it is in the scene near your main camera. total simplicity

it's unclear if "Unity2D" which is co$$anonymous$$g next year will have a simple textmesh system like in 2dT$$anonymous$$, for today anyway, this is the only real world solution - enjoy!

avatar image meat5000 ♦ · Oct 14, 2013 at 08:30 AM 0
Share

Sounds great! Looks pricey...

Show more comments
avatar image
1

Answer by Fattie · Oct 14, 2013 at 08:19 AM

@part, for every type need in Unity3D, I truly recommend just grabbing 2dToolkit. the whole problem is utterly solved in literally less than a minute.

http://answers.unity3d.com/questions/384623/setting-font-size-according-to-screen-dpi.html

notice the long comment (with two images). Additionally you can just use glyphdesigner, and use absolutely any font or type style you need.

We just now never, ever use any other system for typography in Unity - it's the only way to go. For type in your UI, or type "in the 3D world" (floating messages, etc) .. it's literally the inly way to go.

Hope it helps


HOWEVER if you are trying to do Asian type, you are f---ed, there is no good solution :/ Unity's dynamic/etc type is a shambles. Sorry.

Comment
Add comment · 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
0

Answer by unimechanic · Jul 15, 2013 at 06:03 PM

These problems are known, but there isn't a solid bug report with test project:

http://www.tasharen.com/forum/index.php?topic=4953.0

If you can reproduce this problem, please submit a bug report with a minimal sample project.

Comment
Add comment · 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
0

Answer by mikecy · Sep 30, 2013 at 11:47 AM

Please refer to this like, I think this problem may be a bug of Unity:

http://forum.unity3d.com/threads/190158-Dynamic-Font-Missing-Character-Info-on-certain-devices

Thought?

Comment
Add comment · 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

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

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

NullReferenceException when looking at target in an Editor class (CustomEditor) 2 Answers

Why does fmod(x,1.0) not work in Unity4, but fmod(x,1.0001) does? 0 Answers

Error with my float variable? 1 Answer

Unity4 Ignoring Inspector/Initialized Public Value in Build 1 Answer

Unity pro 4, shadow problems 0 Answers


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