Author Topic: Fonts on IOS NGUI  (Read 11496 times)

sk1989

  • Guest
Fonts on IOS NGUI
« on: November 28, 2012, 06:48:06 PM »
HI All,


I been having this trouble for a long time. The fonts once i export them with BMFonts and created them in Unity with NGUI Font Maker. The fonts are really nice and crisp in unity editor but turning out really jagged and blurry after building to the iphone.

I searched through other posts regarding this problem. i couldn't find any where a straight answer as to how to fix this problem . I m hoping here for an answer from the developers if you guys can help me out.

Is it the way i am importing the fonts, because so far it looks like the atlas is what might be screwing it up.

Thanks

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Fonts on IOS NGUI
« Reply #1 on: November 29, 2012, 03:37:44 AM »
Is the resolution the same in the editor and the phone?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fonts on IOS NGUI
« Reply #2 on: November 29, 2012, 07:15:14 AM »
Jagged and blurry? Sounds like you have PVRTC compression enabled for the font's texture or its atlas. Leave them uncompressed -- truecolor.

sk1989

  • Guest
Re: Fonts on IOS NGUI
« Reply #3 on: November 29, 2012, 01:21:20 PM »
In the editor the quality of the fonts is so much better and nice looking is what i want on the phone but once exported to the phone it changed to jagged and blurry


- do you mean in the import settings change it to true color under iphone settings of the texture . it asks to override it

sk1989

  • Guest
Re: Fonts on IOS NGUI
« Reply #4 on: November 29, 2012, 01:48:17 PM »
I tried it with changing to true color, its still turning out jagged

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fonts on IOS NGUI
« Reply #5 on: November 29, 2012, 02:11:17 PM »
Open your Quality Settings and make sure the iPhone is set to the same level as your stand-alone.

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: Fonts on IOS NGUI
« Reply #6 on: November 30, 2012, 01:23:48 AM »
I've had this problem. I found the Unity4 project upgrade seems to reset atlas textures. I just changed the Texture Type to GUI / Truecolor.
Make sure your Target resolution is correct for the target platform tho too. I only have a iPad2 so was using standard under Unity3.5.6, which is iPad 1024x768 on an iPad3. If you set it to Native and the texture is not hi resolution enough you will get rejected due to blurry textures.

This has changed in Unity4 with more options but I *hope* the iPad 769p is the same as the Pre-Unity4 standard setting.

sk1989

  • Guest
Re: Fonts on IOS NGUI
« Reply #7 on: December 04, 2012, 10:25:44 AM »
Unfortunately dont have unity 4 .

Anyways I fixed the problem, I am posting for anyone who might have the same problem.

Use GlyphDesinger to export your fonts into a png with cocco2d

and then use texture packer to re export the png to a ttf file and import it to unity

once you have it imported, change the import settings on the texture to true color, including the ios override to true color as well. 


After, use unity ngui font maker to create the fonts and make sure to use the size that you created. For ios when using fonts dynamically it will turn out blurr.


Anyways this should fix the problem . It does for me.