Hi Vishma,
First thing to check: Is the c++ file which contains this line of code:
osgText::String* string = newosgText::String("గౌతమి",
osgText::String::ENCODING_UTF8);
...utf-8 encoded? It has to be since the text is "hard-coded" in the source.
Second thing to check: does the actual font that you are using include
the characters in the text? And does the font support uft-8? Use a font
viewing application to find out.
Best regards,
John
On 06/10/2012 02:50 PM, shekhar vishwa wrote:
Hi
I want to display the multi lingual text. I have implemented following
code.
osg::ref_ptr<osgText::Text> text =
newosgText::Text;
osgText::String* string = newosgText::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
--
This email was Anti Virus checked by Astaro Security Gateway.
http://www.astaro.com
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org