Hi Yigang,

The osgText::String holds characters as ints rather than char to avoid
just this problem.  There is encoding support in osgText::String as
well. osgText::Text stores all its character data in osgText::String
so just use this.

On 7/12/06, Yigang Wang <[EMAIL PROTECTED]> wrote:
Thanks for your reply.

I have tried the example, but didn't succeed. The problem is that Chinese is 
multibyte character, there exist encoding problem i think.

Thanks.
yigang

----- Original Message -----
From: "Robert Osfield" <[EMAIL PROTECTED]>
To: "osg users" <[email protected]>
Sent: Wednesday, July 12, 2006 5:17 PM
Subject: Re: [osg-users] Different fonts


> On 7/12/06, Yigang Wang <[EMAIL PROTECTED]> wrote:
>> Hi, Robert,
>> How to show Chinese font in OSG? Does it support?
>
> I believe it works just fine, all you need to do is set the font
> filename on the text and set the orientations as required.  See
> osgtext.
>
> Robert.
> _______________________________________________
> 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/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to