vasturiano / three-spritetext

A sprite based text component for ThreeJS
https://vasturiano.github.io/three-spritetext/example/basic/
MIT License
340 stars 46 forks source link

Text Expanding Issue #33

Closed shaoruu closed 2 years ago

shaoruu commented 2 years ago

Hi, thank you for this nice library!

I'm having issues changing the text to anything with a different length. This is the original text: Screen Shot 2022-02-11 at 1 36 12 AM

This is what happens when I set the .text property to 1231231231111 (longer): Screen Shot 2022-02-11 at 1 36 23 AM

This is what happens when I set the text to 432 (shorter): image

What should I do to fix this? Am I missing any steps?

Thank you!

shaoruu commented 2 years ago

By the way, this error pops out when I expand the text: image

And this is the setup I used: image

To add on, the bug also appears for vertical texts: image

The THREE version I'm using is 0.137.5

vasturiano commented 2 years ago

@iantheearl thanks for reaching out.

I've just fixed a bug with the inner Texture update that was likely the source of this issue. Could you please try with the latest version (1.6.5) to see if the problem is solved?

shaoruu commented 2 years ago

Thank you very much, the problem seems to have been solved 🙏