Does Arial.ttf have those arabic characters?
Try change font file.
Ciao!
        mario


Johan Johnsson wrote:
> damnit it worked , but then i incidentaly removed the project, now i cant  
> get it to work:
> 
> osgText::Text* text1 = new osgText::Text;
>      osgText::String* string = new osgText::String("لْعَرَبيّة",  
> osgText::String::ENCODING_UTF8);
>      std::string test = string->createUTF8EncodedString();
> 
>      text1->setFont("fonts/arial.ttf");
>      text1->setCharacterSize(characterSize);
>      text1->setPosition(pos);
>      text1->setAxisAlignment(osgText::Text::XY_PLANE);
>      text1->setText(test);
>      geode->addDrawable(text1);
> 
> 
> just wierd letters, (i use visual studio 2003 if that is to any help, i  
> know i can save the code files in different encoding methods, atm i save  
> them as Unicode(big-endian).
> 
> 
> On Wed, 21 Nov 2007 13:28:58 +0100, Johan Johnsson <[EMAIL PROTECTED]>  
> wrote:
> 
>> tnx very much -the problem was the font.
>>
>> On Wed, 21 Nov 2007 13:24:47 +0100, Thibault Genessay  
>> <[EMAIL PROTECTED]>
>> wrote:
>>
>>> 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
>>>>> osg-users@lists.openscenegraph.org
>>>>>
>>>> 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
>>>> osg-users@lists.openscenegraph.org
>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
> 
> 
> 

-- 
Ing. Mario Valle
Visualization Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to