Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mathiassoeholm on August 08, 2014, 08:26:51 AM

Title: Kerning problem with bitmap font
Post by: mathiassoeholm on August 08, 2014, 08:26:51 AM
I have a problem with the font kerning between the characters 6 and 1, in that order.
It only happens with the bitmap font I generated using the Font Maker.
A dynamic font, seems to work fine.

(http://i.imgur.com/gbrPVSC.png)
Bitmap font above, dynamic font below

I looked at the bitmap font prefab, and found where it save the kerning. It looks like this:

"kerning: 43000000ffffffff44000000f5ffffff4e000000fcffffff50000000f9ffffff51000000f9ffffff53000000ffffffff58000000f8ffffff"

Unfortunately, I have no idea of how to decipher that.
Any suggestions?
Title: Re: Kerning problem with bitmap font
Post by: ArenMook on August 08, 2014, 09:07:39 AM
Dynamic fonts have no kerning. Bitmap fonts do. This is just what the font wants the kerning to be like. Try using the same font somewhere else, you should see the same effect.
Title: Re: Kerning problem with bitmap font
Post by: mathiassoeholm on August 11, 2014, 02:47:11 AM
I tried using the same font in Photoshop and Wordpad. They don't produce the same problem.
I also tried generating a bitmap font using Glyph Designer, and that didn't produce the problem either.
Here's another screenshot:

(http://i.imgur.com/DpKkpCI.png)

Top label uses the bitmap font generated by the Font Maker, middle is the bitmap font imported from Glyph Desginer and bottom is a dynamic font.
Title: Re: Kerning problem with bitmap font
Post by: ArenMook on August 12, 2014, 12:09:49 AM
Hmm. Odd. Can you attach the TTF for me to try?
Title: Re: Kerning problem with bitmap font
Post by: mathiassoeholm on August 12, 2014, 02:16:44 AM
I've sent an email to support at tasharen.com with the font.
It's an OTF btw.