Hi,

The osgText::String class is what handles all characters sets, so
rather than using std::string use it directly and its methods for
setting you characters.

Robert.

On 6/19/07, litingbaotou <[EMAIL PROTECTED]> wrote:


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/

Reply via email to