Jump to content

Pixi BitmapText - Anchor problem


Saeki Amae
 Share

Recommended Posts

Hello everyone :) As in subject - i try to use Pixi.Bitmap.from() function to generate bitmap font from casual one.

But when i try to display that text with anchor.set(0.5) the text isn't ideally centralized. It is moved a bit down from center of container (few pixels about).

I tried to change padding in PIxiBitmap.from() and resolution but the problem keeps existing..

I know i could just change vertical anchor and play with numbers (for example to set it to vertical anchor 0.52 or so)
but it seems so unprofessional to just type such number where there should be 0.5 - besides i have no warranty that
for other users this number won't be different on different skin or different casual font..

On contrary with PIXI.Text and usage of casual font the text displays correctly on anchor.set(0.5)

Does anyone know how to fix that? Thank you in advance for help!

Edited by Saeki Amae
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...