Hi Robert, Thank you for the tips, finally it works if a font like arial is set.
2007/2/27, Robert Osfield <[EMAIL PROTECTED]>:
HI Alex, osgText supports non ascii strings. See the osgText::String class - its uses a full int per character to ensure that it can map all characters in a font. Robert. On 2/27/07, amalric alexandre <[EMAIL PROTECTED]> wrote: > Hi osg-users, > > I have a little problem with osg::Text::setText function. I don't succeed to > draw a sentence with accentuated char (a french one ;-) ). I've tried to > convert my sentence (std::string) in UTF-8 and then pass it to setText like > : > > > > std::string convertMultiByte2utf8(const std::string mb){ > FX88591Codec codec; > return codec.mb2utf(mb.c_str()).text(); > } > > std::string help_text = convertMultiByte2utf8("éeeeeé"); > text->setText(help_text.c_str(),osgText::String::ENCODING_UTF8); > > all I see when I display my drawable is "eeee" . > > Where are my "é" ?? > > Is there a way to display accentuated char or are we obliged to only speak > in english ;-) ? > > Thanks all. > _______________________________________________ > osg-users mailing list > osg-users@openscenegraph.net > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/