LabelNode related string display problem.

classic Classic list List threaded Threaded
5 messages Options
iyigitel iyigitel
Reply | Threaded
Open this post in threaded view
|

LabelNode related string display problem.

Hi,

I am trying to add a LabelNode to my mapNode by code. The text is displayed on the screen, however the empty spaces in text is removed. For example when want to display "This is a Test", the displayed text is "ThisisaTest". What may be the problem? What should I do to prevent removal of blanks in the text.

NOTE: I am using Osgearth version 2.9

Regards,
Iskender
Iskender Yigitel
iyigitel iyigitel
Reply | Threaded
Open this post in threaded view
|

Re: LabelNode related string display problem.

Any ideas? Anybody else observing the same problem?

Iskender
Iskender Yigitel
krzysief krzysief
Reply | Threaded
Open this post in threaded view
|

Re: LabelNode related string display problem.

Hi,

As far as i'm concerned this occurs when you set the text in TextSymbol like:

textSymbol->content() = "text text";

but maybe try doing it in other way, just by setting it in LabelNode:

labelNode->setText("text text");

~Kris
iyigitel iyigitel
Reply | Threaded
Open this post in threaded view
|

Re: LabelNode related string display problem.

Thank you very much for the tip. I will try it.

Iskender
Iskender Yigitel
iyigitel iyigitel
Reply | Threaded
Open this post in threaded view
|

Re: LabelNode related string display problem.

Yes. It worked. Strange though. Thanks again.

Iskender.
Iskender Yigitel