>
Hi,>
I have to modify the text displayed by the Text2D class in a live scene graph.>
Can I do that, or it's impossible.>
If anyone has an answer, please tell me.
In order to use Text2D, I tried to use Text3D with setString.
I read in this place, that we can change the text with the example at the end.
But when I do this, I always see the precedent text (here "0.00") and all the letters of my new text have the same x and y position (all the letters are on the top of the first letter).
Anybody can help me,
I don't know where I can find a solution.
Thanks in advance,
David.
EXAMPLE :
> Text3D valueText;
> Font buttonFont = new Font("Dialog", Font.PLAIN, 6);
> Font3D myFont3D = new Font3D(buttonFont,new FontExtrusion());
> valueText = new Text3D(myFont3D, "0.00");
> valueText.setCapability(Text3D.ALLOW_STRING_WRITE);
> valueText.setCapability(Text3D.ALLOW_STRING_READ);
> Shape3D valueTextShape = new Shape3D(valueText, new Appearance());
>
> To update the text I use
>
> valueText.setString(String newText)
