Well, besides setting the font, you also need to call setText(), and setText() takes an osgText::String& as a parameter, which is a multibyte character string, so it should support international fonts. What parameter are you passing to setText()? And what results are you getting? -Paul
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of litingbaotou Sent: Sunday, June 17, 2007 8:31 PM To: osg-users Subject: [osg-users] How can I display Chinese characters in OSG? Hi, I use funtions followed to display a Chinese character, but it doesn't work. osgText::Text* text_ch = new osgText::Text(); text_ch->setFont("simhei.ttf"); And simhei.ttf is a Chinese character file. Is there any osg fuction to display a Chinese character? Or I have to overload the drawImplementation <mk:@MSITStore:D:\开源项目 \OpenSceneGraph\OpenSceneGraph%20Main%20Page.chm::/classosgText_1_1Text.html #a47> () ? Now I use OSG V1.0. ( soon to update to OSG V2.0 ) _____ litingbaotou 2007-06-18
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
