Author Topic: Garbed Text Shortly After Load  (Read 9017 times)

MRKane

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Garbed Text Shortly After Load
« on: August 31, 2014, 08:53:02 PM »
Gidday All,

I've been working on a relatively complicated GUI that has a couple of dynamic buttons that change location depending on which platform they're loaded on (so the buttons have a different layout on tablet, or phone, or web) and I've found that just after the application loads on the iOS the text becomes "garbled" if you will. I'm using Unity fonts after finding that the NGUI text just didn't look sharp enough on the retina screens (even with the Unity font it still doesn't look that crisp, but I can live with that).

I've attached an example of how the text breaks up. Is there a quick solution to this problem at all? Any help is greatly appreciated!!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Garbed Text Shortly After Load
« Reply #1 on: September 01, 2014, 12:18:06 PM »
Dynamic fonts suffer from issues in Unity itself that have come up on many occasions. Bug report this project to Unity so they can have a look. They need a clean example to follow and are yet to receive a solid bug case.

Until then I suggest sticking to bitmap fonts. They will look crisp if you use them at native sizes. Meaning if your label is 70 pixels tall then the font size should also be 70 -- and not just on the label, but the actual font itself, when created in the Font Maker.

MRKane

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Garbed Text Shortly After Load
« Reply #2 on: September 01, 2014, 06:12:21 PM »
Dang - typical Unity I suppose! Thanks for the heads up!

greyhoundgames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 39
    • View Profile
Re: Garbed Text Shortly After Load
« Reply #3 on: March 12, 2015, 03:03:07 PM »
Has there been an update on this? We are seeing this after we upgraded from unity 4.5 to unity 5. Its reliably reproducible by loosing focus on the unity window and coming back.

We can try to submit something but just curious if something has happened lately.

Thanks!

EDIT It actually editing a file. When it saves the text vanishes, and when there is a problem(like an error), it doesn't come back until something triggers an update. This could imply it won't happen in production...
« Last Edit: March 12, 2015, 03:41:54 PM by greyhoundgames »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Garbed Text Shortly After Load
« Reply #4 on: March 12, 2015, 08:39:31 PM »
There is nothing I can do on my end as this is all Unity. Dynamic font usage is not advised.

greyhoundgames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 39
    • View Profile
Re: Garbed Text Shortly After Load
« Reply #5 on: March 12, 2015, 09:44:31 PM »
Whats your suggestion for handling Japanese etc with massive # of symbols as far as bitmap fonts go?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Garbed Text Shortly After Load
« Reply #6 on: March 13, 2015, 09:56:20 PM »
Unless your game actually features user chat, you can simply paste your entire localization file into the "custom" field of the Font Maker, and it will automatically choose all the symbols that your font will need, discarding the rest.