Hi
 
osgText also can work with wstrings, you can use those. (like  L"గౌతమి" )
Cheers,
Sergey.
 
11.06.2012, 15:54, "John Vidar Larring" <[email protected]>:
Hi Vishma,

First thing to check: Is the c++ file which contains this line of code:

osgText::String* string = new osgText::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 =
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
-- 
This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com
_______________________________________________
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

Reply via email to