[osg-users] osgText::Text background color

Percy Camilo Triveño Aucahuasi orgyforever at gmail.com
Fri Jan 4 09:25:24 PST 2008


Maybe, You should try to use another font, for instance you can use the
fonts of your system:
/usr/share/fonts
Here you have a nice fonts:
/usr/share/fonts/truetype/dustin
A example:

osgText::Text *text = new osgText::Text();
text->setFont("/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf");

I hope this help you.

Greetings

2008/1/4, Michele Bosi <michele.bosi at gmail.com>:
>
> Hello,
> in my application I am using some osgText::Text objects to render some
> short text, but unfortunately is not so easy to read.
> I tried to put an outline and drop shadows using the function
> setBackdropType() but with very poor results.
> I was wondering if there was a way to make OSG draw the background of
> the text with a given color/transparency and eventually if
> one could visualize a frame around the text. I think I saw it done
> somewhere but cannot recall where...
>
> Thanks,
> Michele
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080104/7e95a176/attachment.htm 


More information about the osg-users mailing list