just hacked together a handy utility that lets you use TTF fonts with wide ranges and texture fonts together on the fly: it can extract the texture and the .fontdef on the fly and save (cache) it on disc, so you dont need to regenerate the font upon next program start. This can save you some seconds during program start
code there: http://www.ogre3d.org/wiki/index.php/Re ... tToTexture
questions? / further ideas? / comments?
EDIT: extended the code a bit further, see example_usage method
new code snippet: RenderTTFFontToTexture
- tdev
- Silver Sponsor
- Posts: 244
- Joined: Thu Apr 12, 2007 9:21 pm
- Location: Germany
- x 14
new code snippet: RenderTTFFontToTexture
working on: http://rigsofrods.com | OgreProcedual (project) | Caelum (project) | Paged Geometry (project) | OISB (project) | OgreAngelscript | OgreMeshTool
-
- Greenskin
- Posts: 145
- Joined: Wed Jun 10, 2009 8:09 am
Re: new code snippet: RenderTTFFontToTexture
Nice work, this looks like it could be very useful.