[osg-users] osgWidget::Label size adjustment

Sebastian Schmidt herrdersuppen at gmail.com
Mon Mar 21 07:19:12 PDT 2016


Hi,

Im using osg 3.0.1 and i have problems with adjusting the size of a osgWidget::Label to its text.

As far as i understand, without using setSize, the widget size depends on the length of the text and font type.
I like this and i dont want to set the size manually, but the gap to the widget border is getting larger with every character.

Is it possible to use this behaviour in combination with something like "setMargin()" ?
Thank you!

Cheers,
Sebastian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66575#66575








More information about the osg-users mailing list