<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_grab_font_from_bitmap() Documentation Error</title>
		<link>http://www.allegro.cc/forums/view/605838</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 17 Dec 2010 00:23:35 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I just noticed this in the documentation for <span class="source-code"><a href="http://www.allegro.cc/manual/al_grab_font_from_bitmap"><span class="a">al_grab_font_from_bitmap</span></a><span class="k2">(</span><span class="k2">)</span></span>:</p><pre>int ranges[] = {32, 126};
<b>al_font_grab_font_from_bitmap</b>(bitmap, 1, ranges)

int ranges[] = {
    0x0020, 0x007F,  /* ASCII */
    0x00A1, 0x00FF,  /* Latin 1 */
    0x0100, 0x017F,  /* Extended-A */
    0x20AC, 0x20AC}; /* Euro */
<b>al_font_grab_font_from_bitmap</b>(bitmap, 4, ranges)</pre><p>

It should be this:</p><pre>int ranges[] = {32, 126};
<b>al_grab_font_from_bitmap</b>(bitmap, 1, ranges)

int ranges[] = {
    0x0020, 0x007F,  /* ASCII */
    0x00A1, 0x00FF,  /* Latin 1 */
    0x0100, 0x017F,  /* Extended-A */
    0x20AC, 0x20AC}; /* Euro */
<b>al_grab_font_from_bitmap</b>(bitmap, 4, ranges)</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Todd Cope)</author>
		<pubDate>Thu, 16 Dec 2010 22:03:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is there anything different in the two code samples you posted?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Thu, 16 Dec 2010 22:27:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605838/895090#target">Evert</a> said:</div><div class="quote"><p>Is there anything different in the two code samples you posted?</p></div></div><p>Only the names of the functions. And it took me several tries to see it <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Thu, 16 Dec 2010 22:37:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605838/895092#target">Thomas Fjellstrom</a> said:</div><div class="quote"><p>Only the names of the functions. And it took me several tries to see it <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" /></p></div></div><p>
Indeed. I checked all the font ranges three times, as well as the comments and the function arguments.<br />It would have been useful to point that out. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Thu, 16 Dec 2010 22:43:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I used diff &gt;.&gt;
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Fri, 17 Dec 2010 00:23:35 +0000</pubDate>
	</item>
</rss>
