<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_load_bitmap_font makes no sense</title>
		<link>http://www.allegro.cc/forums/view/617764</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 06 Mar 2019 01:19:27 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It expects at least 1px border between glyphs.</p><p>I dare you to google &quot;code page 437&quot; and find a single upload that includes borders <i>and</i> the extended-ASCII set.</p><p><a href="http://dwarffortresswiki.org/Tileset_repository?ref=binfind.com/web">Dwarf Fortress ASCII tilesets</a>? Nope.</p><p><a href="https://www.google.com/search?q=VGA+font&amp;safe=active&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0ahUKEwjvxbK8tODgAhXSVt8KHeajAO4Q_AUIDigB&amp;cshid=1551425065955832&amp;biw=1242&amp;bih=537">VGA font</a>? Nope.</p><p><a href="https://www.google.com/search?q=code+page+437+font&amp;safe=active&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0ahUKEwib2JLatODgAhUnmeAKHSB0DcUQ_AUIDigB&amp;biw=1242&amp;bih=537">code page 437</a>? Nope.</p><p>I can&#39;t find a single font that works with this function.</p><p>Why isn&#39;t there a switch (or function) to use either:</p><p> - Specify arguments for size and padding values.</p><p> - Figure out the font dimensions automatically by assuming fixed-width, and (optionally?) a set number of characters (or just default to 256).</p><p>My only guess here (and it&#39;s likely) is that this function was intended for use with variable-length fonts? (Hence the px border) But you would <i>almost</i> always use TTF for variable length fonts. </p><p>So it seems like we implemented the rarest possible case... and left out the most common one.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Fri, 01 Mar 2019 13:20:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>We could certainly add a function to handle these formats... like <span class="source-code">al_load_fixed_bitmap_font</span> or <span class="source-code">al_load_grid_bitmap_font</span>.</p><p>As it is, I think the easiest thing would actually be to create a bmfont XML file to tell Allegro how to read such things:</p><pre class="terminal">&lt;font&gt;
  &lt;info face=&quot;font&quot; size=&quot;8&quot; bold=&quot;0&quot; italic=&quot;0&quot; charset=&quot;&quot; unicode=&quot;&quot; /&gt;
  &lt;common lineHeight=&quot;8&quot; base=&quot;0&quot; pages=&quot;1&quot; /&gt;
  &lt;pages&gt;
    &lt;page id=&quot;0&quot; file=&quot;the_font.png&quot;/&gt;
  &lt;/pages&gt;
    &lt;chars count=&quot;100&quot;&gt;
      &lt;char id=&quot;32&quot; x=&quot;0&quot; y=&quot;0&quot; width=&quot;8&quot; height=&quot;8 xoffset=&quot;0&quot; yoffset=&quot;0&quot; xadvance=&quot;8&quot; page=&quot;0&quot; chnl=&quot;15&quot;/&gt;
...and so on...
&lt;/font&gt;</pre><p>

Save that with <span class="source-code">.fnt</span> extension and load that with <span class="source-code"><a href="http://www.allegro.cc/manual/al_load_font"><span class="a">al_load_font</span></a></span>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 04 Mar 2019 06:35:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s a relic of the Allegro 4 bitmap fonts, which had the same restrictions.</p><p>What you need is one of those pink yellow and black or white fonts, like this :</p><p><a href="https://www.allegro.cc/files/attachment/611937">https://www.allegro.cc/files/attachment/611937</a><br /><span class="remote-thumbnail"><span class="json">{"name":"611937","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/9\/a90dfae616d349f7544d7f9715430b6f.png","w":294,"h":228,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/9\/a90dfae616d349f7544d7f9715430b6f"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/a/9/a90dfae616d349f7544d7f9715430b6f-240.jpg" alt="611937" width="240" height="186" /></span></p><p>You can download my Allegro 4 Font Maker here :</p><p><a href="https://www.allegro.cc/forums/thread/606083/898918#target">https://www.allegro.cc/forums/thread/606083/898918#target</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 06 Mar 2019 01:19:27 +0000</pubDate>
	</item>
</rss>
