[osg-users] RTF Widget

Robert Osfield robert.osfield at gmail.com
Mon Jul 18 11:51:48 PDT 2016


Hi Sam,

osgText doesn't support rich text format.  The osgPango 3rd party
library does support the Pango markup though so this night be an
option.  osgWidgets and osgUI don't use osgPango though...

Robert.

On 18 July 2016 at 18:10, Sam Jones <cambienta at gmail.com> wrote:
> Hi,
>
> Am I understanding correctly, that OSG labels/widgets do not support rich text? Or am I missing something? (By rich text I mean switching styles in the middle of a string; I know that the labels support different colors and styles, but only applied to the whole string as far as I can tell).
>
> What I'm currently doing is using a wxWidgets-based dialog box to take rich input and then display it in an OSG label. This all works fine with plain text, and I can get rich text into the input box, but style is lost in the conversion. I haven't found anything in the docs on this, but I might not be looking in the right place.
>
> If this is the case, does anyone have a pointer as to how they achieved the same thing? If not, I'll figure something out and post the solution I come up with :)
>
> Cheers,
> Sam
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68161#68161
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list