Naughty Alien Posted May 15, 2010 Share Posted May 15, 2010 ..hi guys..im wondering what bitmap font solution you use in your work..as for me, im using Quads textured with bitmap font texture , in such way that im reading specific UV on texture related to character and paint that on to Quad created with proper size for given UV-ed font. so its all fine and nice..however, i have experience some problems..my fonts disappear when i enable HDR and i think it has something to do GL blend modes i am using..anyway, I would like to know, what solutions you use with no such issues (tested over framewerk too).. Quote Link to comment Share on other sites More sharing options...
Canardia Posted May 15, 2010 Share Posted May 15, 2010 I haven't found any reason yet not to use LE's LoadFont/SetFont/DrawText. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Flexman Posted May 15, 2010 Share Posted May 15, 2010 Ditto, I'm using the LE 2D font drawing too. 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...
AndyGFX Posted May 15, 2010 Share Posted May 15, 2010 I´m sent code to your PM Quote [HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64 [sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx Link to comment Share on other sites More sharing options...
Naughty Alien Posted May 15, 2010 Author Share Posted May 15, 2010 ..well..few reasons why i wanted Font system independent from engine..eg., what if I need few different fonts at same time on screen? How should I use that with Setfont(loadFont()) ? Quote Link to comment Share on other sites More sharing options...
Canardia Posted May 15, 2010 Share Posted May 15, 2010 You can preload all fonts like font1=LoadFont(), font2=LoadFont(), and then use SetFont(font1), SetFont(font2) to use different loaded fonts. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Naughty Alien Posted May 15, 2010 Author Share Posted May 15, 2010 what would be handler for loaded font..I have tried Font1:TFont=LoadFont() but Bmax reporting error..do you mind to posy some simple example? Quote Link to comment Share on other sites More sharing options...
AndyGFX Posted May 15, 2010 Share Posted May 15, 2010 TGLFont instead TFont Font1:TGLFont=LoadFont(...) Quote [HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64 [sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx Link to comment Share on other sites More sharing options...
Naughty Alien Posted May 15, 2010 Author Share Posted May 15, 2010 ..agh..no wonder..thats why whole thing collapsing..i have named my Font class also TGLFont..thats why crashing engine..thanks Andy, a lot.. Quote 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.