Hi Johan,

Did you check that the font file itself does include the glyphs that
you try to display ?
Also, try to pass your input data as a wide character string, i.e. L"لْعَرَبيّة"

I have a similar problem in the past and solved it using wchar_t
strings in my source files, and using a different font that actually
had the glyphs.

Hope this helps

Thibault


On Nov 21, 2007 1:15 PM, Johan Johnsson <[EMAIL PROTECTED]> wrote:
> I may be doing this wrong, because its just showing some wierd letters:
>
>      osgText::Text* text1 = new osgText::Text;
>      osgText::String* string = new osgText::String("لْعَرَبيّة",
> osgText::String::ENCODING_UTF8);
>      std::string test = string->createUTF8EncodedString();
>
>
>
> On Wed, 21 Nov 2007 10:50:39 +0100, Robert Osfield
> <[EMAIL PROTECTED]> wrote:
>
> > On Nov 21, 2007 9:04 AM, Johan Johnsson <[EMAIL PROTECTED]> wrote:
> >> Can the scenegraph represent utf-8 on the screen?
> >
> > You mean does osgText support UTF-8 encoding of strings?  The answer
> > is yes, have a look at osgText::String for details.
> >
> > Robert.
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> --
> Mr. Johan Johnsson
> AutoSim AS, Strandveien 106, 9006 Tromsø
> Visit us at http://www.autosim.no
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to