Closed joex92 closed 1 year ago
Hi, I'm showing text on a SVG canvas, everything is fine, the only issue I'm having is when the text showing is too long. How do I handle that? I tried with a .wrap class, but that doesn't work:
.wrap
tText.className = '.wrap';
.wrap { overflow-wrap: break-word; width: 100vw; height: 100vh; }
how can I wrap text?
it looks like this: (just using example texts)
This isn't supported out of the box in Two.js. But there is a great third-party library that allows you to do this: https://www.npmjs.com/package/twojs-multiline-text
oh nice! I didn't know about that... thanks!
Hi, I'm showing text on a SVG canvas, everything is fine, the only issue I'm having is when the text showing is too long. How do I handle that? I tried with a
.wrap
class, but that doesn't work:how can I wrap text?
it looks like this:
(just using example texts)