Turning off the debugger, it works however.

Code: Select all
;{
define *img
define *fnt
;}
*img = createImage ( #pb_any,
256,
256 )
if ( startDrawing ( imageOutput ( *img ) ) )
;{
; this line works when the debugger is disabled:
*fnt = loadFont ( #pb_any,
"Lucida Console",
12 )
if ( ( *fnt ) and ( isFont ( *fnt ) ) )
;{
if ( fontId ( *fnt ) )
;{
drawingFont ( fontId ( *fnt ) )
drawText ( 0,
0,
"Testtext",
#white )
;}
endIf
;}
endIf
stopDrawing ( )
saveImage ( *img,
getTemporaryDirectory ( ) +
"256.bmp" )
runProgram ( getTemporaryDirectory ( ) +
"256.bmp" )
;}
endIf