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,
>
>
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
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
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");
4 matches
Mail list logo