new code snippet: RenderTTFFontToTexture

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
Silver Sponsor
Silver Sponsor
Posts: 244
Joined: Thu Apr 12, 2007 9:21 pm
Location: Germany
x 14

new code snippet: RenderTTFFontToTexture

Post by tdev »

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: ... tToTexture

questions? / further ideas? / comments?

EDIT: extended the code a bit further, see example_usage method
Posts: 145
Joined: Wed Jun 10, 2009 8:09 am

Re: new code snippet: RenderTTFFontToTexture

Post by Olemars »

Nice work, this looks like it could be very useful.
Post Reply