Jump to content

Unable to draw Font Studio generated fonts


Roland
 Share

Recommended Posts

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

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

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

  • Upvote 1

 

Link to comment
Share on other sites

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.

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

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

  • Upvote 1

 

Link to comment
Share on other sites

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

step01g.jpg

 

STEP 02

step02.jpg

 

STEP 03

step03.jpg

  • Upvote 1

 

Link to comment
Share on other sites

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 :) :) :D

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

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.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

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

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

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! :)

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...