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

Reply via email to