[osg-users] Trouble Drawing Text in Arabic

Erik Hensens ehensens at hunter.com
Wed Nov 9 13:18:16 PST 2016


ehensens wrote:
> 
> Jan Ciger wrote:
> > On Wed, Nov 2, 2016 at 3:35 PM, Chris Hanson < ()> wrote:
> > 
> > > Is this something osgCairo ( https://github.com/cubicool/osgcairo (https://github.com/cubicool/osgcairo) ) might solve for you?​
> > > 
> > 
> > 
> > 
> > 
> > Love that TODO in the README!
> > 
> > 
> > However, be aware that when I have played with Pango/Cairo for OSG some years ago for one of our projects, these libraries had major issues with multithreading in OSG, resulting in randomly corrupted text/textures. I haven't tried osgCairo, though, perhaps it fixes that problem.
> > 
> > 
> > J.
> > 
> >  ------------------
> > Post generated by Mail2Forum
> 
> 
> Thank you both very much for your responses! Also, Jan, thanks for the warning given your previous experiences with these libraries.
> 
> I will do some experimentation with both osgPango and osgCairo to see if this fixes my issues.  8)


Thanks everyone for your contributions. Just wanted to update this thread; I ended up rendering the text directly to a 2D GtkDrawingArea using Pango and Cairo, creating a bitmap, and then showing the bitmap on the scene under a billboard heads up camera.

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








More information about the osg-users mailing list