Hello all,

This is my first time to use this.

I faced some problem about display UTF-8 character like alpha and beta in
OSG. Can any one give some idea? Thank you so much! The code was like this
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
osg::ref_ptr<osgText::Text> text = new osgText::Text;
text->setFont("CAMBRIA.TTC");
//text->setFont( font.get() );
text->setColor( white );
text->setCharacterSize( characterSize );
text->setPosition(OsgFunc::arrowArcTextPosition(centerPoint,centerPoint+osg::Vec3(-30,0,0),centerPoint+v)+osg::Vec3d(0,-5,1));
text->setAxisAlignment( osgText::Text::SCREEN );
text->setText( "\x03b20",osgText::String::ENCODING_UTF8 );
geode->addDrawable( text.get() );
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Any idea will be greatly appreciated!

Thank you so much!
Litao Shen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to