Jump to content

Loading bitmap font caused `Texture Error`


LOSSES Don
 Share

Recommended Posts

Hello everyone! I'm a new comer of PIXI. I'm facing some problem about generated bitmap font for PIXI.js.

The font is generated with bitmap font generator (image.png.40eb0e02790454c050c6f722a224540a.png).

And while I'm trying to load it, an error occurred:

Texture Error: frame does not fit inside the base Texture dimensions: X: 988 + 3 = 991 > 1 or Y: 0 + 1 = 1 > 1

A demo is available here: https://codesandbox.io/s/pixi-bitmap-font-problem-report-blcp3?file=/src/index.ts

I totally have no idea how to debug this, is it means that I'm using wrong parameter for the generator? or I'm using PIXI loader in a wrong way?

 

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