Open stephenwithav opened 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.
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.
I tried using
PIXI.TextMetrics.measureText
, but no luck.Is there a simple way to make this work?