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