Hi Peter,

I'm not clear on what the problem is.  The characters you pass to the
osgText::Text can be a std::string which is nice and convenient for
ASCII characters, but for extended characters sets you'll want to use
the wider character support.  The wide character support is provided
by osgText::String that osgText::Text uses internally.
osgText::String is a std::vector<uint>, have a look the
include/osgText/String header.  As String is just a std::vector<uint>
you'll be assign the characters directly.

Robert.

On 7 August 2013 09:28, peter <nxg2...@163.com> wrote:
> I have a font file in ".ttf" format with mainly symbols. I want to use
> these symbols as osgText::Text in my application. I am not able to
> understand what should I specify in "text->setString" Function so that I
> can visualize the symbols. I am attaching the font file which i am using
> as test case. It will be great if somebody can tell me how can these fonts be 
> used as
> normal text.
>
> Thank you!
>
> Cheers,
> peter
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55794#55794
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to