Jump to content

Caution : BitmapText


bubamara
 Share

Recommended Posts

I just spent some time with PIXI.BitmapText and found that, when using font which name contains spaces, it doesn't work well.

 

For example font named : "Titan One" won't work. 

 

You need to edit your *.fnt file and edit corresponding line to :

<info face="Titan" ...> 

 

Deleting spaces from font name is needed. 

And of course don't forget to adjust your javascript line to match font name: 

 

var bitmapFontText = new PIXI.BitmapText("text", {font: "32px Titan", align: "left"});

 

Regards,

-bubamara

 

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...