Re: [osg-users] Display the multi lingual text

2012-06-13 Thread Maxim Gammer
osgText::String textstr; textstr.set(Value, osgText::String::ENCODING_UTF8); text->setText(textstr); 2012/6/13 Sergey Polischuk : > Hi > > osgText also can work with wstrings, you can use those. (like  L"గౌతమి" ) > Cheers, > Sergey. > > 11.06.2012, 15:54, "John Vidar Larring" : > > Hi Vishma, > >

Re: [osg-users] Display the multi lingual text

2012-06-13 Thread Sergey Polischuk
Hi osgText also can work with wstrings, you can use those. (like  L"గౌతమి" )Cheers,Sergey. 11.06.2012, 15:54, "John Vidar Larring" :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_UT

Re: [osg-users] Display the multi lingual text

2012-06-11 Thread John Vidar Larring
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 t

[osg-users] Display the multi lingual text

2012-06-10 Thread shekhar vishwa
Hi I want to display the multi lingual text. I have implemented following code. osg::ref_ptr text = new osgText::Text; osgText::String* string = new osgText::String("గౌతమి", osgText::String::ENCODING_UTF8); std::string test = string->createUTF8EncodedString(); text->setFont("fonts/gautami.ttf");