Jump to content

Bitmap Font not working (errors when including .fnt into the AssetLoader)


rorypicko
 Share

Recommended Posts

I have used the recommended BMFont as suggested in this article here 

 

http://www.goodboydigital.com/text-updates/

 

But when i include the .fnt into my project it crashes with this error in the console

 

Uncaught TypeError: Cannot read property 'slice' of undefined

 

This is frustrating as there is very little documentation, as .fnt format is supposed to just work!

 

And to coincide with limited tutorials on this it says the error is with pixi.min.js line 16 which is 25% of the code.

 

-------------------------------------------------------------------------------------

 

Basically, the last line i wrote made me unminify the src, include it and debug it. Turns out you need to set the export settings of .fnt to XML and this fixed it.

 

Still going to post this as i've not seen any documentation anywhere specifying that XML export is required

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...