GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2010-Mar-19

Title: Cant delete a font - aka No File
Post by: MrTAToad on 2010-Mar-19
With the following :

Code (glbasic) Select
LOADFONT "Media/MainMenuFont.png",1
DEBUG "Next free : "+GENFONT()+"\n"

LOADFONT "",1
DEBUG "Next free : "+GENFONT()+"\n"


You would expect font index 1 to be free for loading - unfortunately, the next free is index 2, even after supposedly remove the font from memory.

By the way, I've also found out where the Error : No file message comes from when you exit a program - if you change LOADFONT "" to LOADFONT "x", it will happen.

This bug is a slight problem for me, as it appears if the user selects a screen resolution change option - using new indexes (as opposed to re-using them), the program soon finds the limit has been reached...
Title: Re: Cant delete a font - aka No File
Post by: Kitty Hello on 2010-Mar-19
OK, fixed in next update.