|
al_draw_text doesn´t work |
Sven Gallin
Member #14,497
August 2012
|
hi folks, i have tried to get al_draw_text working but it wont work. http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Addons/Fonts 1:1 (with download of the pirulen.ttf font) and if i run the .exe he still crashes. gdb says: Program received signal SIGSEGV, Segmentation fault. compiler is gcc 4.7.0(mingw), allego 5.0.7 monolith-mt, os: win7 64. thanks. |
AleX-G Squadron
Member #13,593
October 2011
|
Have you tried to change the pirulen.ttf to arial.ttf? www.anothergames.com |
J-Gamer
Member #12,491
January 2011
|
Have you checked the return value when you load the font? ie: the font isn't NULL? " There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo |
Sven Gallin
Member #14,497
August 2012
|
yes, have tried arial also and the return value of al_load_ttf_font |
Arthur Kalliokoski
Second in Command
February 2005
|
The example you pointed to doesn't use al_draw_ustr(), is that the only line of code you changed? Could you post it? They all watch too much MSNBC... they get ideas. |
Sven Gallin
Member #14,497
August 2012
|
>The example you pointed to doesn't use al_draw_ustr(), is that the only line of code you changed? i haven´t change any piece of the code. but gdb gives me this error. |
Matthew Leverton
Supreme Loser
January 1999
|
I don't think the binaries are compatible with gcc 4.7. If your code is correct, that is probably your problem. |
Sven Gallin
Member #14,497
August 2012
|
>I don't think the binaries are compatible with gcc 4.7. If your code is correct, that is probably your problem. yes, that was it. have downloaded 4.6.2 and now it works. |
|