Author Topic: Font Creation Issues  (Read 5399 times)

BlueSin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Font Creation Issues
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Font Creation Issues
« Reply #1 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.

BlueSin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Font Creation Issues
« Reply #2 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!