pixi-tagged-text
pixi-tagged-text copied to clipboard
How to set text in middle when use "lineHeight"
code: const t = new TaggedText('hello world', { default: { wordWrap: true, wordWrapWidth: 50, valign: 'middle', lineHeight: 50 } }, { debug: true })
I got
But I want the text in vertical middle. Sorry for my poor english.
Vertical align will change how the whole paragraph appaers within it's bounding box but doesn't work on each line. I've honestly never tried this before and I'm not sure whether it should be considered a bug.
You might try adjustBaseline to bush the line down to the middle