<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_draw_text doesn´t work</title>
		<link>http://www.allegro.cc/forums/view/610886</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 24 Aug 2012 18:37:52 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hi folks,</p><p>i have tried to get al_draw_text working but it wont work.<br />an the end, to minimize my coding-faults, i have compiled the example code from</p><p><a href="http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Addons/Fonts">http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Addons/Fonts</a></p><p>1:1 (with download of the pirulen.ttf font) and if i run the .exe he still crashes. gdb says:<br />Starting program: M:\test.exe<br />[New Thread 1284.0x890]<br />[New Thread 1284.0xf74]<br />[New Thread 1284.0xcd8]<br />[New Thread 1284.0x544]</p><p>Program received signal SIGSEGV, Segmentation fault.<br />0x6428de49 in al_draw_ustr () from M:\allegro-5.0.7-monolith-mt.dll</p><p>compiler is gcc 4.7.0(mingw), allego 5.0.7 monolith-mt, os: win7 64.<br />what can i do to fix this?</p><p>thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sven Gallin)</author>
		<pubDate>Fri, 24 Aug 2012 15:34:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have you tried to change the pirulen.ttf to arial.ttf?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (AleX-G Squadron)</author>
		<pubDate>Fri, 24 Aug 2012 15:38:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have you checked the return value when you load the font? ie: the font isn&#39;t NULL?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (J-Gamer)</author>
		<pubDate>Fri, 24 Aug 2012 15:39:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>yes, have tried arial also and the return value of al_load_ttf_font<br />is already tested in the example code:<br />if (!font){<br />      fprintf(stderr, &quot;Could not load &#39;pirulen.ttf&#39;.\n&quot;);<br />      return -1;<br />   }
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sven Gallin)</author>
		<pubDate>Fri, 24 Aug 2012 15:55:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The example you pointed to doesn&#39;t use al_draw_ustr(), is that the only line of code you changed?  Could you post it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Fri, 24 Aug 2012 15:58:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>&gt;The example you pointed to doesn&#39;t use al_draw_ustr(), is that the only line of code you changed?</p><p>i haven´t change any piece of the code. but gdb gives me this error.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sven Gallin)</author>
		<pubDate>Fri, 24 Aug 2012 17:11:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I don&#39;t think the binaries are compatible with gcc 4.7. If your code is correct, that is probably your problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 24 Aug 2012 17:40:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>&gt;I don&#39;t think the binaries are compatible with gcc 4.7. If your code is correct, that is probably your problem.</p><p>yes, that was it. have downloaded 4.6.2 and now it works.<br />thank you:<br />D.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sven Gallin)</author>
		<pubDate>Fri, 24 Aug 2012 18:37:52 +0000</pubDate>
	</item>
</rss>
