Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIXI.TextMetrics undefined #39

Open
stephenwithav opened this issue Jun 24, 2017 · 2 comments
Open

PIXI.TextMetrics undefined #39

stephenwithav opened this issue Jun 24, 2017 · 2 comments

Comments

@stephenwithav
Copy link

I tried using PIXI.TextMetrics.measureText, but no luck.

Is there a simple way to make this work?

@stephenwithav
Copy link
Author

The simplest solution might be to assign TextMetrics via an IIFE. I'll explore that in the morning if no other options are mentioned.

@kittykatattack kittykatattack self-assigned this Jul 6, 2017
@kittykatattack kittykatattack removed their assignment Jul 6, 2017
@IntegerMan
Copy link

Is this even included in the main package anymore? I can't find it anywhere referenced in the source code (at least in my node_modules with Pixi 4 as a dependency). I see it in your documentation, but it seems to be fairly out of reach.

I'm interested in this because I want to right align a Text element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants