Roland Posted June 18, 2010 Share Posted June 18, 2010 I can't draw any fonts made by using FontStudio 4.1. The font loads OK but nothing is drawn to screen. I have followed the instructions in the Wiki and uses the code from that example to view the font. There is a font Arial12Shadow that can be downloaded from that example and it works nice. But when using FontStudio to generate my own font nothing is drawn to screen. I follow the FontStudio instructions and gets a .ini and a .tga file. I then use MakeDDS to convert the .tga file to a .dds (Uncompressed + Save mipmaps). So what's the trick to get thins going I attach my test font Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Naughty Alien Posted June 18, 2010 Share Posted June 18, 2010 ..i havent tried your font, but this is how structuraly, same things works for me with my fonts, considering that you have created it properly.. 'before main loop MyFont:TGLFont = LoadFont("abstract::MyFontName") SetFont(MyFont) 'in main loop. For use with GUI's blending modes are relevant. if it is just plain text, then ignore blending modes. SetBlend(BLEND_ALPHA) DrawText("THIS IS TEST", 10, 10) SetBlend 0 ..also, i guess, you doing text drawing last in order, over gedgets graphics text belong to.. 1 Quote Link to comment Share on other sites More sharing options...
macklebee Posted June 18, 2010 Share Posted June 18, 2010 well the first thing I see is that you are saving mipmaps which you shouldn't do... but even that doesn't appear to fix your problem. What font is that Roland? Maybe someone can try to get that font to work. I just tried a font and it works just fine. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Canardia Posted June 18, 2010 Share Posted June 18, 2010 Did you forget to copy the font's .ini file to your project folder? 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 June 18, 2010 Share Posted June 18, 2010 ..i have tested just now..my fonts all work..I have also resaved your TGA file properly, to make sure that no issues with DDS you delivered..however, no luck..only thing I could think of, what makes your font different than mine is that I use to use 512x512 pattern, while yours is 256x512, and that may cause a problem..try to export your bitmap with 512x512.. 1 Quote Link to comment Share on other sites More sharing options...
macklebee Posted June 18, 2010 Share Posted June 18, 2010 i thought that as well NA, so I had exported a test font as 256x512 and it worked just fine... its almost like Roland's ini file is wrong Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Naughty Alien Posted June 18, 2010 Share Posted June 18, 2010 ..yup..tested just now..its about settings used in FontStudio, i guess.. 1 Quote Link to comment Share on other sites More sharing options...
DaDonik Posted June 18, 2010 Share Posted June 18, 2010 I had to replace all , with . in the ini file. That solved the problem you described, Roland. Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
macklebee Posted June 18, 2010 Share Posted June 18, 2010 yep DD, that was it! roland's font works just fine once the commas in the INI file were replaced with periods. I assume thats a OS/language thing that causes that? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Naughty Alien Posted June 18, 2010 Share Posted June 18, 2010 ..i have tried same version he used, same output texture size and here are exact settings i have used, just to make 100% clear, and this works for me without touching ini file..i guess commas appeared because FNT extraction..so here is setting I have used without any altering at all.. STEP 01 STEP 02 STEP 03 1 Quote Link to comment Share on other sites More sharing options...
DaDonik Posted June 18, 2010 Share Posted June 18, 2010 Since only europeans seem to have that problem, i think you're right macklebee. Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
Roland Posted June 18, 2010 Author Share Posted June 18, 2010 I had to replace all , with . in the ini file. That solved the problem you described, Roland. Yes. That solved the problem. In Sweden we have , as separator instead of . Replacing those made everything work just fine. Thanks a lot to you all guys with all help. This is why I came back to Leadwerks :) Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Canardia Posted June 18, 2010 Share Posted June 18, 2010 In Sweden we have , as separator instead of .That's why I invented the Global Standard. If you don't use it, you only get problems In GS the "." seperates decimals and the "," seperates thousands. If you use that rule, you can avoid hundreds of problems with all kinds of computer software, including BizTalk, CSV files, Excel, Paradox, etc..., and now even with FontStudio. It just pays back, since time is money. 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...
Roland Posted June 18, 2010 Author Share Posted June 18, 2010 That's why I invented the Global Standard. If you don't use it, you only get problems In GS the "." seperates decimals and the "," seperates thousands. If you use that rule, you can avoid hundreds of problems with all kinds of computer software, including BizTalk, CSV files, Excel, Paradox, etc..., and now even with FontStudio. It just pays back, since time is money. To bad the FontStudio creator did not know about your NWO. ..oh..ooops... GS I mean However its nice to get the problems solved. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Canardia Posted June 18, 2010 Share Posted June 18, 2010 Well GS is better than NWO in the sense that it makes sense. It's full of best practices and useful rules. It's free of course, and you don't have to use it, but if you don't, then you'd better have your own standards which work, and I'd like to review them for GS too! 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...
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.