[osg-users] [forum] Set default text of osgText::Text3D

David Callu ledocc at gmail.com
Fri Nov 6 02:33:30 PST 2009

Hi Narcisa

There are no default font in osgText::Text3D.
In osgText::Text, the default font is hard coded in
osg/src/osgText/DefaultFont.cpp, this require some
few line (~ 100 lines) of information.
In osgText::Text3D, the glyph is built with information provide by TrueType
(.ttf) font.
This is not so simple to provide a default font in this case.

So you have to provide a TrueType file. There are some TrueType font in
take a look to this osg wiki
more information about osg data.

David Callu

2009/11/6 Narcisa Flaviana <narcisa.mironese at continental-corporation.com>

> Hello,
> This is my first post on this forum. My question is: how do I set the
> default font for a 3D text?
> I use:
> text->setFont(0);
> but this only works for osgText::Text, not for osgText::Text3D. In the last
> case the text just doesn't show up!
> Thank you!
> Cheers,
> Narcisa
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=19265#19265
> _______________________________________________
> 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/20091106/a0620b1a/attachment.htm>

More information about the osg-users mailing list