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???_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org