Hello Guest

Author Topic: Bug inside BMFont (not inside 2D Toolkit)  (Read 5827 times)

nikolic

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 48
    • View Profile
Bug inside BMFont (not inside 2D Toolkit)
« on: March 12, 2012, 02:20:23 am »
I found the bug in the exported BMFont xml file and think I should share as I believe it's not so easy to track down.

I included very small character subset (only digits and few letters) and there was no kerning between the characters inside the exported atlas. The generated xml was not valid and it had to be corrected manually. 2D Toolkit tried to parse it as BMFont text file and found no characters.

Instead of:

Code: [Select]
<kernings count="0" />
BMFont writes:

Code: [Select]
<kernings count="0">
Hope it might help someone.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Bug inside BMFont (not inside 2D Toolkit)
« Reply #1 on: March 12, 2012, 06:24:49 pm »
Thanks for sharing that information.

It could be font related - I have tried it on a couple of fonts and it seems to produce correct results.