How to make a multi-line Text3D?
Posted by
basti on
Jul 10, 2023; 3:25pm
URL: https://forum.jogamp.org/How-to-make-a-multi-line-Text3D-tp4042759.html
Hello,
this is my first post here in the forum, so I want to take the time
to say Thank You to everybody involved in the continuation of Java3D.
I currently have an issue with Text3D. I can't get a multi-line String to work.
String text = "line1\nline2"; //-> turns out: line1line2
//String text = "<html>line1<br>line2</html>"; //-> turns out: <html>line1<br>line2</html>
Font font = new Font("Courier New", Font.PLAIN, 1);
Font3D font3D = new Font3D(font);
Text3D text3d = new Text3D(font3D, text);
I've tried it with \n and a html String does not work, also.
I looked into
Text3DRetained but was unable to find anything explicitly
against multi-line Strings.
I'm running Java3D version 1.6.1
Maybe there's something obvious I'm missing here?
Thanks for your help,
basti