Author Topic: Bitmap font inside Atlas.  (Read 5395 times)

JeongHo Eom

  • Guest
Bitmap font inside Atlas.
« on: November 07, 2013, 07:02:11 AM »
When I make a bitmap font with atlas,
texts doesn't appear properly,

whereas, when I make a bitmap font without atlas.
It is just fine.

I'm using Korean.
And my NGUI version is 3.0.4.

I attached a screenshot and materials of the font.
And both texts of UILabel were "New Label" in the screenshot.

Thank you.

macy

  • TNP Alpha
  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 8
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #1 on: November 07, 2013, 10:12:15 AM »
Have you tried to create the font in a new Atlas?
Some times NGUI tries to place the font inside other existing Atlas which occurs issues.

JeongHo Eom

  • Guest
Re: Bitmap font inside Atlas.
« Reply #2 on: November 07, 2013, 11:38:30 AM »
Yeah, it was a new atlas.

And I tried twice, but same result.

Moreover, there was just one image in the atlas except a text image.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #3 on: November 08, 2013, 10:23:51 AM »
Confirmed, will be fixed in the next version.

P.S. Issue only seems to occur with non-square atlases? Adding some sprites that make the atlas become square fixes it.
« Last Edit: November 08, 2013, 10:39:24 AM by ArenMook »

danfoo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 93
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #4 on: November 21, 2013, 04:10:35 AM »
Confirmed, will be fixed in the next version.

P.S. Issue only seems to occur with non-square atlases? Adding some sprites that make the atlas become square fixes it.

Does not appear to be correct. I have a 128x128 atlas to which I am trying to add a bitmap font. Nothing happens... :(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #5 on: November 21, 2013, 04:15:59 AM »
Using what version?

danfoo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 93
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #6 on: November 21, 2013, 04:25:44 AM »
Using what version?
2.6.1d, so feel free to ignore the above. Realizing the error of my ways I upgraded to the latest version only to be greeted by this:
Quote
Assets/NGUI/Scripts/UI/UIInputSaved.cs(17,32): error CS0506: `UIInputSaved.text': cannot override inherited member `UIInput.text' because it is not marked virtual, abstract or override

Any ideas?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #7 on: November 21, 2013, 05:12:13 AM »
There is no UIInputSaved anymore. You can delete that script. And in the future please follow the upgrade instructions that involve deleting the NGUI folder first prior to importing the updated version.

danfoo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 93
    • View Profile
Re: Bitmap font inside Atlas.
« Reply #8 on: November 21, 2013, 05:18:12 AM »
There is no UIInputSaved anymore. You can delete that script. And in the future please follow the upgrade instructions that involve deleting the NGUI folder first prior to importing the updated version.

Thank you. I apologize for not paying more attention to the instructions.