Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: JeongHo Eom on November 07, 2013, 07:02:11 AM

Title: Bitmap font inside Atlas.
Post by: JeongHo Eom 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.
Title: Re: Bitmap font inside Atlas.
Post by: macy 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.
Title: Re: Bitmap font inside Atlas.
Post by: JeongHo Eom 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.
Title: Re: Bitmap font inside Atlas.
Post by: ArenMook 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.
Title: Re: Bitmap font inside Atlas.
Post by: danfoo 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... :(
Title: Re: Bitmap font inside Atlas.
Post by: ArenMook on November 21, 2013, 04:15:59 AM
Using what version?
Title: Re: Bitmap font inside Atlas.
Post by: danfoo 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?
Title: Re: Bitmap font inside Atlas.
Post by: ArenMook 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.
Title: Re: Bitmap font inside Atlas.
Post by: danfoo 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.