Wrong character width with BitmapFontTexture

2 posts in this topic

Character width calculation is wrong for not mono-spaced fonts. Error is here (BMFontLoaderTxt._buildCharInfo):

if (xadv) {
   width = xadv;

Character width is not always equal to xadv. Try to export Arial from BMFont and look to number characters  (48-57)

When rendering, wrong part of texture is taken for character.


Share this post

Link to post
Share on other sites


Thanks for reporting, I've created this Trello Card. I'm really focused right now to revamp the positioning engine, that's why I don't fix the other things right away. 

But once I'm done with the current task, I'll work on them immediately.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.