Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: BlueSin on February 10, 2016, 02:01:56 AM

Title: Font Creation Issues
Post by: BlueSin on February 10, 2016, 02:01:56 AM
I am trying to add a custom font using BMFont, I have followed this tutorial: https://www.youtube.com/watch?v=ni7TfMPWq5M

When I import the font, go to NGUI > Open > Font Maker, and create an imported font using the .fnt & .tga files, the created font has a warning:

"The sprite used by this font has been trimmed and is not suitable for modification.  Try re-adding this sprite with 'Trim Alpha' disabled.  I am not sure what that means, I have never heard of 'trim alpha' in Unity.  Please help!

Screenshot: http://puu.sh/n2uXD/d6969ac631.png
Title: Re: Font Creation Issues
Post by: ArenMook on February 10, 2016, 05:48:04 PM
Is there any reason you can't use the NGUI's font maker as-is to generate a bitmap font? There hasn't been any need to rely on BMFont in years...

The trim alpha is an option when adding a sprite to an atlas. My guess is you forgot to mark the font's texture as non-power-of-two. Select the texture, choose Advanced for texture type, and turn off power of 2 forcing.
Title: Re: Font Creation Issues
Post by: BlueSin on February 10, 2016, 06:11:51 PM
Oh...I thought that was the best option, but it was such a PITA!  Had I known there was a better alternative I would have taken it, thank you!