Hi,
I'm trying to write text to a bitmap with a truetype font. My program crashes at the
call to al_draw_text(). I haven't managed to work out why.
Hi,
not wanting to be a pain but I've swapped the code to load arial.ttf and it still does what it used to on my computer. It obviously doesn't do the same on my computer as it does on your computer.
I wonder why.
I've got
liballegro-5.0.10-monolith-md.a
as the linker options.
Could it be that my PATH variable isn't set up properly so the program can find the files it needs. I'm using Windows 8 and code::blocks
I'm using Allegro 5.2.4. Why don't you switch to a more recent version of Allegro?
What is the output on your computer?
The console prints out :
10
20
30
40
45
Loaded font.
font pointer not null.
font pointer not null.
bitmap not NULL
Process returned -1073741819 (0xC0000005) execution time : 2.007 s
Press any key to continue.
I'll try the version your using and see how that goes.
You're not checking the return value of al_install_system. It's probably failing due to runtime problems. Ie. mixed versions of dll and headers.