Hi

I want to display the multi lingual text. I have implemented following code.

osg::ref_ptr<osgText::Text> text = new osgText::Text;
osgText::String* string = new osgText::String("గౌతమి",
osgText::String::ENCODING_UTF8);
std::string test = string->createUTF8EncodedString();
text->setFont("fonts/gautami.ttf");
text->setCharacterSize(20);
text->setPosition(pos);
text->setAxisAlignment(osgText::Text::XY_PLANE);
text->setText(test);

But text is displays as "???????" in osg view.

Please help me to display the multi lingual font text.

Thanks
Vishwa
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to