On Mon, 2010-08-09 at 05:57 +0000, [email protected] wrote:
> I recomposition osgWidget::label       sustain  chinese
> 
> class  Label1: public osgWidget::Widget
> 
>  
> 
> Label1 (const std::string& , const std::wstring& );
> 
> 
> Label1::Label1(const std::string& name, const std::wstring& label):
> Widget     (name, 0, 0),
> _text      (new osgText::Text()), 
> _textIndex (0) {
>     _text->setAlignment(osgText::Text::LEFT_BOTTOM);
>     _text->setDataVariance(osg::Object::DYNAMIC);
> 
>     if(label.size()) {
>   _text->setText(label.c_str());
> 
>         _calculateSize(getTextSize());
>     }
>     setColor(0.0f, 0.0f, 0.0f, 0.0f);
> }
> 
>  
> 
> osg::ref_ptr<osgText::Text> _text;
> 
>  
> 
> osgText::Text sustain  chinese, but osgWidget::Label no other than
> chinese 
> 
>  
> 
> Label (const std::string& = "", const std::string& = "");
> 
>  
> 
> Label::Label(const std::string& name, const std::string& label):
> Widget     (name, 0, 0),
> _text      (new osgText::Text()), 
> _textIndex (0) {
>     _text->setAlignment(osgText::Text::LEFT_BOTTOM);
>     _text->setDataVariance(osg::Object::DYNAMIC);
> 
>     if(label.size()) {
>         _text->setText(label);
> 
>         _calculateSize(getTextSize());
>     }
>     setColor(0.0f, 0.0f, 0.0f, 0.0f);
> }
> 
> can accession sustain  widget chinese???

Because of the language issues here, I'm afraid I don't fully understand
the question. However, osgWidget::Label uses an osgText::Text object
internally, so if it isn't supporting your language or encoding, perhaps
osgWidget isn't passing the string along encoded--though I do recall
testing that successfully.

Do you have anyone that can perhaps translate your question?

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to