Setfont

BlitzPlus Forums/BlitzPlus Programming/Setfont

JWW(Posted 2003) [#1]
Has Mark changed the Setfont command has it now causes my programs to crash if called a number of times without using Freefont command to free memory. This problem did not occur in 1.11


marksibly(Posted 2003) [#2]
This works fine for me...

Graphics 640,480

font=LoadFont( "courier",12 )

While Not KeyHit(1)

	SetFont font
	
Wend


Could you post an example that causes a crash?


Nigel Brown(Posted 2003) [#3]
I was having a similar problem. Thought it was something to do with a code fragment:

SetBuffer DesktopBuffer()
SetFont fnt

was unable to write a standalone pice of code that replicated it? But try putting the SetBuffer command inside the loop...