Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: laurentl on April 03, 2013, 02:37:15 AM

Title: Working with font and atlas
Post by: laurentl on April 03, 2013, 02:37:15 AM
I am running into a wall at high speed, with those fonts.
I add fonts but some of them don't look right, as if they are offset in the atlas.
The way I create my fonts is:
drop the font text in font data, drop texture
type font name
if I made a fond before then the next cell, the one referencing the font is already assigned so i leave it like that
i make sure the proper atlas is selected
then I press the button
Title: Re: Working with font and atlas
Post by: Tiles on April 03, 2013, 03:05:21 AM
Not sure at which point your trouble resides.

Did you use the right tool to create your bitmap font before? The manual mentions a tool called Bitmapfontmaker. Which works fine when you follow the correct steps that are mentioned in the manual.

Did you use the Font Maker tool to create your font for the atlas then? Else it will just be treated as a simple sprite, and not as a font. Can be found in the menu under NGui / Font Maker

I had a case where i had to reimport the font to get it back working after i have imported some sprites. Maybe that`s your problem too.
Title: Re: Working with font and atlas
Post by: laurentl on April 03, 2013, 03:10:11 AM
I am using GLyph designer and the font looks fine most of the time.

And all the steps I listed in my previous message are in the Font Maker.

Yes it sounds like my problem. Was the font an offset of somewhere in the atlas?