<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>libalfont.a anyone?</title>
		<link>http://www.allegro.cc/forums/view/553393</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 18 Dec 2005 06:58:58 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can someone please attach or link me to libalfont.a?  I&#39;m using Dev-Cpp by the way and I can&#39;t seem to find this file.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 05:42:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you have a choice, use Glyph Keeper. ALFont is no longer maintained. That said, I can&#39;t, because I don&#39;t have it installed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 05:50:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>ok, I&#39;m looking int Glyph Keeper now...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 06:05:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you download OpenLayer the .a file is included, though you&#39;ll have to get the manuals elsewhere.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Sat, 17 Dec 2005 06:07:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>cool.  I used libglyph.a from Openlayer.  Openlayer to the rescue!  thanks
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 06:28:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m gonna bump this thread because I&#39;m pretty sure you&#39;ll need it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 06:46:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I&#39;m gonna bump this thread because I&#39;m pretty sure you&#39;ll need it.
</p></div></div><p>
good work, because now I&#39;m having this problem <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /> :</p><p>I cannot convert the Glyph Keeper to the Allegro&#39;s FONT.  The error is: &quot;&#39;gk_create_allegro_font&#39; is undeclared;&quot;</p><p>the function:
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td><span class="k1">int</span> save_text_bmp<span class="k2">(</span>string filename, GLYPH_FACE <span class="k3">*</span>f, <span class="k1">int</span> font_size, string message, <span class="k1">int</span> font_color, <span class="k1">int</span> background_color, <span class="k1">int</span> padding_left, <span class="k1">int</span> padding_top, <span class="k1">int</span> padding_right, <span class="k1">int</span> padding_bottom<span class="k2">)</span></td></tr><tr><td class="number">2</td><td><span class="k2">{</span></td></tr><tr><td class="number">3</td><td>    GLYPH_REND <span class="k3">*</span>rend<span class="k2">;</span></td></tr><tr><td class="number">4</td><td>    </td></tr><tr><td class="number">5</td><td>    <span class="k1">if</span> <span class="k2">(</span><span class="k3">!</span>f<span class="k2">)</span> <span class="k1">return</span> <span class="n">1</span><span class="k2">;</span></td></tr><tr><td class="number">6</td><td>    rend <span class="k3">=</span> gk_create_renderer<span class="k2">(</span>f,<span class="n">0</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">7</td><td>    <span class="k1">if</span> <span class="k2">(</span><span class="k3">!</span>rend<span class="k2">)</span> <span class="k1">return</span> <span class="n">1</span><span class="k2">;</span></td></tr><tr><td class="number">8</td><td>    </td></tr><tr><td class="number">9</td><td>    gk_rend_set_size_pixels<span class="k2">(</span>rend, font_size, font_size<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">10</td><td>       </td></tr><tr><td class="number">11</td><td>    <span class="k1">int</span> width <span class="k3">=</span> gk_text_width_utf8<span class="k2">(</span>rend, message.c_str<span class="k2">(</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">12</td><td>    <span class="k1">int</span> height <span class="k3">=</span> gk_rend_height_pixels<span class="k2">(</span>rend<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">13</td><td>&#160;</td></tr><tr><td class="number">14</td><td>    <span class="c">//width += padding_left + padding_right;</span></td></tr><tr><td class="number">15</td><td>    <span class="c">//height += padding_top + padding_bottom;</span></td></tr><tr><td class="number">16</td><td> </td></tr><tr><td class="number">17</td><td>    <a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>b <span class="k3">=</span> <a href="http://www.allegro.cc/manual/create_bitmap" target="_blank"><span class="a">create_bitmap</span></a><span class="k2">(</span>width, height<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">18</td><td>    </td></tr><tr><td class="number">19</td><td>    <a href="http://www.allegro.cc/manual/clear_to_color" target="_blank"><span class="a">clear_to_color</span></a><span class="k2">(</span>b, background_color<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">20</td><td>&#160;</td></tr><tr><td class="number">21</td><td>    <span class="c">//gk_render_line_utf8(b, rend, message.c_str(), padding_left, padding_top);</span></td></tr><tr><td class="number">22</td><td>    </td></tr><tr><td class="number">23</td><td>    <a href="http://www.allegro.cc/manual/FONT" target="_blank"><span class="a">FONT</span></a> <span class="k3">*</span>afont<span class="k2">;</span></td></tr><tr><td class="number">24</td><td>    afont <span class="k3">=</span> gk_create_allegro_font<span class="k2">(</span>rend<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">25</td><td>    </td></tr><tr><td class="number">26</td><td>    <a href="http://www.allegro.cc/manual/textout_ex" target="_blank"><span class="a">textout_ex</span></a><span class="k2">(</span>b, afont, message.c_str<span class="k2">(</span><span class="k2">)</span>, padding_left, padding_top, font_color, <span class="k3">-</span><span class="n">1</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">27</td><td>&#160;</td></tr><tr><td class="number">28</td><td>    <a href="http://www.allegro.cc/manual/save_bitmap" target="_blank"><span class="a">save_bitmap</span></a><span class="k2">(</span>filename.c_str<span class="k2">(</span><span class="k2">)</span>, b, NULL<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">29</td><td>&#160;</td></tr><tr><td class="number">30</td><td>    <a href="http://www.allegro.cc/manual/destroy_bitmap" target="_blank"><span class="a">destroy_bitmap</span></a><span class="k2">(</span>b<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">31</td><td>&#160;</td></tr><tr><td class="number">32</td><td>    <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">33</td><td><span class="k2">}</span></td></tr></tbody></table></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 06:58:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>#define GLYPH_TARGET GLYPH_TARGET_ALLEGRO? The OpenLayer libglyph.a might have trouble because its target is GLYPH_TARGET_ALLEGROGL...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 06:59:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I added #define GLYPH_TARGET GLYPH_TARGET_ALLEGRO above the #include &quot;glyph.h&quot; line and it still gives me that error : &quot;&#39;gk_create_allegro_font&#39; is undeclared;&quot; or &quot;undefined reference to &#39;gk_create_allegro_font&#39;&quot;.</p><p>It <i>is</i> defined the glyph.h file, is it possible that it was not compiled into the Openlayer .a version?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 07:17:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes. If you get the &quot;undefined reference&quot;, it means that the linker cannot find it. It was not compiled into OpenLayer. If you get &quot;undeclared&quot;, it means the compiler cannot find it, amongst the .h files.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 07:21:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m trying to compile Glyph Keeper myself but it failes -- see attachment.  What am I doing wrong?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 07:45:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The compiler in the makefile is set to cc, instead of say gcc. Try </p><pre>make CC=gcc</pre><p>. Also, if you clock the prompt&#39;s icon, you can go to Edit-&gt;Mark, select text, and press enter to copy it to the clipboard.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 08:57:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried changing the cc&#39;s to gcc&#39;s in the makefile but it still will not compile.</p><p>also tried this:
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>C:\gc&gt;make CC<span class="k3">=</span>gcc</td></tr><tr><td class="number">2</td><td>make: <span class="k3">*</span><span class="k3">*</span><span class="k3">*</span> No targets specified <span class="k1">and</span> no makefile found.  Stop.</td></tr><tr><td class="number">3</td><td>&#160;</td></tr><tr><td class="number">4</td><td>C:\gc&gt;make.mingw</td></tr><tr><td class="number">5</td><td>&#160;</td></tr><tr><td class="number">6</td><td>C:\gc&gt;MINGDIR<span class="k3">=</span>C:\Dev-Cpp</td></tr><tr><td class="number">7</td><td><span class="s">'MINGDIR'</span> is <span class="k1">not</span> recognized as an internal <span class="k1">or</span> external command,</td></tr><tr><td class="number">8</td><td>operable program <span class="k1">or</span> batch file.</td></tr><tr><td class="number">9</td><td>&#160;</td></tr><tr><td class="number">10</td><td>C:\gc&gt;PATH<span class="k3">=</span>C:\msys\<span class="n">1</span>.<span class="n">0</span>\bin<span class="k2">;</span>C:\Dev-Cpp\bin<span class="k2">;</span>C:\msys\<span class="n">1</span>.<span class="n">0</span>\bin<span class="k2">;</span>C:\Dev-Cpp\bin<span class="k2">;</span>C:\WIND</td></tr><tr><td class="number">11</td><td>OWS\system32<span class="k2">;</span>C:\WINDOWS<span class="k2">;</span>C:\WINDOWS\System32\Wbem<span class="k2">;</span>C:\Program Files\QuickTime\QTSy</td></tr><tr><td class="number">12</td><td>stem\<span class="k2">;</span>C:\Program Files\Common Files\Roxio Shared\DLLShared<span class="k2">;</span>C:\Dev-Cpp\bin<span class="k2">;</span></td></tr><tr><td class="number">13</td><td>&#160;</td></tr><tr><td class="number">14</td><td>C:\gc&gt;make <span class="k3">-</span>f Makefile.MinGW TARGET<span class="k3">=</span>ALLEGRO</td></tr><tr><td class="number">15</td><td>Compiling Glyph Keeper <span class="k3">/</span> Allegro with MinGW</td></tr><tr><td class="number">16</td><td>cc <span class="k3">-</span>W <span class="k3">-</span>Wall <span class="k3">-</span>std<span class="k3">=</span>c89 <span class="k3">-</span>O3 <span class="k3">-</span>DGK_NO_LEGACY <span class="k3">-</span>DGLYPH_TARGET<span class="k3">=</span>GLYPH_TARGET_ALLEGRO <span class="k3">-</span>s <span class="k3">-</span></td></tr><tr><td class="number">17</td><td>c <span class="k3">-</span>o obj<span class="k3">/</span>libgkalleg.o src<span class="k3">/</span>glyph.c</td></tr><tr><td class="number">18</td><td>process_begin: CreateProcess<span class="k2">(</span><span class="k2">(</span>null<span class="k2">)</span>, cc <span class="k3">-</span>W <span class="k3">-</span>Wall <span class="k3">-</span>std<span class="k3">=</span>c89 <span class="k3">-</span>O3 <span class="k3">-</span>DGK_NO_LEGACY <span class="k3">-</span>DG</td></tr><tr><td class="number">19</td><td>LYPH_TARGET<span class="k3">=</span>GLYPH_TARGET_ALLEGRO <span class="k3">-</span>s <span class="k3">-</span>c <span class="k3">-</span>o obj<span class="k3">/</span>libgkalleg.o src<span class="k3">/</span>glyph.c, ...<span class="k2">)</span> fai</td></tr><tr><td class="number">20</td><td>led.</td></tr><tr><td class="number">21</td><td>make <span class="k2">(</span>e<span class="k3">=</span><span class="n">2</span><span class="k2">)</span><span class="k2">:</span> The <a href="http://www.delorie.com/djgpp/doc/libc/libc_802.html" target="_blank">system</a> cannot find the file specified.</td></tr><tr><td class="number">22</td><td>make: <span class="k3">*</span><span class="k3">*</span><span class="k3">*</span> <span class="k2">[</span>obj<span class="k3">/</span>libgkalleg.o<span class="k2">]</span> Error <span class="n">2</span></td></tr><tr><td class="number">23</td><td>&#160;</td></tr><tr><td class="number">24</td><td>C:\gc&gt;</td></tr></tbody></table></div></div><p>

[edit] another alternative:  is there a function that converts OpenLayer bitmap to an allegro Bitmap?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 09:32:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You forgot the CC=gcc on the last line.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Sat, 17 Dec 2005 09:45:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I type<br />[edit]<br /><span class="source-code">make <span class="k3">-</span>f Makefile.MinGW TARGET<span class="k3">=</span>ALLEGRO CC<span class="k3">=</span>gcc</span><br />and get a slew of errors, most of them say &quot;dereferencing pointer to incomplete type&quot;</p><p>here is an exerpt:
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>src<span class="k3">/</span>glyph_to_allegro.c:111: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">2</td><td>src<span class="k3">/</span>glyph_to_allegro.c:111: error: `FT_RENDER_MODE_MONO<span class="s">' undeclared (first</span></td></tr><tr><td class="number">3</td><td><span class="s">n this function)</span></td></tr><tr><td class="number">4</td><td><span class="s">src/glyph_to_allegro.c: In function `gk_text_width_allegro'</span><span class="k2">:</span></td></tr><tr><td class="number">5</td><td>src<span class="k3">/</span>glyph_to_allegro.c:250: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">6</td><td>src<span class="k3">/</span>glyph_to_allegro.c:256: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">7</td><td>src<span class="k3">/</span>glyph_to_allegro.c:256: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">8</td><td>src<span class="k3">/</span>glyph_to_allegro.c: In function `_gk_vtable_render_char<span class="s">':</span></td></tr><tr><td class="number">9</td><td><span class="s">src/glyph_to_allegro.c:336: error: dereferencing pointer to incomplete type</span></td></tr><tr><td class="number">10</td><td><span class="s">src/glyph_to_allegro.c:339: error: dereferencing pointer to incomplete type</span></td></tr><tr><td class="number">11</td><td><span class="s">src/glyph_to_allegro.c:340: error: dereferencing pointer to incomplete type</span></td></tr><tr><td class="number">12</td><td><span class="s">src/glyph_to_allegro.c:346: error: dereferencing pointer to incomplete type</span></td></tr><tr><td class="number">13</td><td><span class="s">src/glyph_to_allegro.c: In function `_gk_vtable_render'</span><span class="k2">:</span></td></tr><tr><td class="number">14</td><td>src<span class="k3">/</span>glyph_to_allegro.c:388: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">15</td><td>src<span class="k3">/</span>glyph_to_allegro.c:391: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">16</td><td>src<span class="k3">/</span>glyph_to_allegro.c:392: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">17</td><td>src<span class="k3">/</span>glyph_to_allegro.c:398: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">18</td><td>src<span class="k3">/</span>glyph_to_allegro.c: In function `_gk_vtable_destroy<span class="s">':</span></td></tr><tr><td class="number">19</td><td><span class="s">src/glyph_to_allegro.c:421: error: dereferencing pointer to incomplete type</span></td></tr><tr><td class="number">20</td><td><span class="s">src/glyph_to_allegro.c: In function `gk_create_allegro_font'</span><span class="k2">:</span></td></tr><tr><td class="number">21</td><td>src<span class="k3">/</span>glyph_to_allegro.c:484: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">22</td><td>src<span class="k3">/</span>glyph_to_allegro.c:484: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">23</td><td>src<span class="k3">/</span>glyph_to_allegro.c:489: error: dereferencing pointer to incomplete type</td></tr><tr><td class="number">24</td><td>src<span class="k3">/</span>glyph_to_allegro.c:490: error: dereferencing pointer to incomplete type</td></tr></tbody></table></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 09:58:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;d probably be because Glyph can&#39;t find/isn&#39;t including FreeType... Check its docs?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 10:16:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have found another way to get it to work.</p><p>I was able to do all the text drawing and stuff in OpenLayer, capture a screenshot, thanks to this thread: <a href="http://www.allegro.cc/forums/thread/552667">http://www.allegro.cc/forums/thread/552667</a> .  then crop the bitmap and saved it.</p><p>Thanks for all your help.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 10:38:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Wait, this was jsut a one-image deal? That couldn&#39;t&#39;ve been done in MS Paint? <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 17 Dec 2005 10:41:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I plan on doing a bunch of them.  They need to be the same font size, have the same margins, etc.</p><p>It&#39;s always a pain to do 10 in a row, only to find out they should be a font size smaller, or the margin is off... this way I can do them in batch.</p><p>Now to save them as a 16-color gif with a transparent background.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sat, 17 Dec 2005 12:39:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Forgot about the allegrogl build, sorry. Do you still want a copy as it&#39;s just a quick recompile to get the original allegro version built?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Sun, 18 Dec 2005 06:58:58 +0000</pubDate>
	</item>
</rss>
