I tried this way but it doest work
osgText::String textstr;
textstr.set("азимут");
text->setText(textstr);
Thanx in advance
Bye
Roman
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roman
Grigoriev
Sent: Thursday, October 23, 2008 4:06 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] Localization problem
Hi Robert!
Could you please give me example how to use your method
Thanx in advance
Bye
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Thursday, October 23, 2008 3:51 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Localization problem
HI Roman,
The osgText library has an osgText::String class for handling full
range of sybmol types so you use this to set the Text's value rather
than the std::string based setText(..) method you are using right now.
Robert.
2008/10/23 Roman Grigoriev <[EMAIL PROTECTED]>:
> Hi guys!
>
> I try to translate my osg text to my local language have wrong symbols
>
> I've done it using this way.
>
> Please help me if someone did it.
>
> Thanx in advance
>
> Bye
>
>
>
> std::string timesFont("arial.ttf");
>
>
>
> osg::StateSet* stateset = geode->getOrCreateStateSet();
>
> stateset->setMode(GL_LIGHTING,osg::StateAttribute::OFF);
>
>
>
> osg::Vec3 position(20.0f,300.0f,0.0f);
>
> osg::Vec3 delta(0.0f,-20.0f,0.0f);
>
>
>
> {
>
> osgText::Text* text = new osgText::Text;
>
> geode->addDrawable( text );
>
>
>
> text->setFont(timesFont);
>
> text->setPosition(position);
>
> text->setText("Азимут");
>
>
>
> position += delta;
>
> }
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org