kittykatattack / hexi

Make games the fun way!
MIT License
551 stars 83 forks source link

PIXI.TextMetrics undefined #39

Open stephenwithav opened 7 years ago

stephenwithav commented 7 years ago

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

Is there a simple way to make this work?

stephenwithav commented 7 years ago

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

IntegerMan commented 6 years ago

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.