hi,litingbaotou
You should rebuild the osgText and osgText Plugin library with wchar_t
optional on, then you can use Chinese font to display.
2007/6/19, litingbaotou < [EMAIL PROTECTED]>:
Hi, Paul
I use as followed:
std::string m_strText;
text1->setFont("simhei.ttf"); // simhei.ttf is kind of
Chinese font
text1->setText(m_strText);
When I set m_strText = "abc" or other letters, it works OK. But if I
set m_strText = any Chinese charater, it will show nothing, and if m_strText
= "abc" + Chinese charater, it will just display "abc" and follows "abc"
there are some clobbers.
Still in OSG V1.0, and my Windows do have and support simhei.ttf.
------------------------------
litingbaotou
2007-06-19
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/