AggrorJorn Posted October 24, 2010 Share Posted October 24, 2010 This video tutorial explains how to make your own font styles for the Leadwerks engine and how to load new fonts in to your program. Quote Link to comment Share on other sites More sharing options...
Pancakes Posted October 24, 2010 Share Posted October 24, 2010 epic winQ! Quote Core I5 2.67 / 16GB RAM / GTX 670 Zbrush/ Blender / Photoshop CS6 / Renoise / Genetica / Leadwerks 3 Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted October 24, 2010 Share Posted October 24, 2010 that is awesome! Thanks aggror Quote Link to comment Share on other sites More sharing options...
Richard Simpson Posted October 26, 2010 Share Posted October 26, 2010 This is a cool tutorial. I always wondered how the font style would be changed. Thanks. Quote Intel core 2 quad 6600 | Nvidia Geforce GTX460 1GB | 2GB DDR2 Ram | Windows 7. Google Sketchup | Photoshop | Blender | UU3D | Leadwerks Engine 2.4 Link to comment Share on other sites More sharing options...
gamecreator Posted October 26, 2010 Share Posted October 26, 2010 Well done. Easy to follow. My only question is: why was the FPS font replaced as well? I wouldn't have expected that to happen. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted October 26, 2010 Author Share Posted October 26, 2010 By default framework uses the command SetStats with a parameter of 1 (show fps). If you use setfont before the main loop then every text is going to have that font. Haven't tested this but it might work: main loop fw:Update() fw:Render() SetBlend(1) RemoveFont(myfont) SetStats(1) SetFont(myfont) Drawtext ('lalalala') SetBlend(1) Althought this looks not all that good since you call setstats every single loop. I don't think it will impact performance but it can bother you with it presence in the main loop. Quote Link to comment Share on other sites More sharing options...
Flexman Posted October 26, 2010 Share Posted October 26, 2010 The FPS font will use whatever the last font selected was. If you want the default font back see this thread...Default Font Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Masterxilo Posted October 31, 2010 Share Posted October 31, 2010 You don't have to create a new font if you just want to use another color. You should always leave the color to white. Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.