<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Color Fonts in allegro...</title>
		<link>http://www.allegro.cc/forums/view/583797</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 09 May 2006 02:25:18 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok,</p><p>I am trying to load a color font (attached) using Allegro&#39;s load_font() function. It loads correctly, but I can&#39;t change the colors of the text. Is there a way to do this using 32-bit colored fonts? I am asking, because I want to have a colored outline on the font, but be able to change the inside color of the font.</p><p>Thanks everyone,<br />Donald
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Don Freeman)</author>
		<pubDate>Mon, 08 May 2006 20:58:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I am trying to load a color font (attached) using Allegro&#39;s load_font() function. It loads correctly, but I can&#39;t change the colors of the text. Is there a way to do this using 32-bit colored fonts?
</p></div></div><p>
No. Color fonts have their own colors. That&#39;s what separates them from monochrome fonts.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Is there a way to do this using 32-bit colored fonts? I am asking, because I want to have a colored outline on the font, but be able to change the inside color of the font.
</p></div></div><p>
Use two fonts: one for the outline and one for the inside.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Mon, 08 May 2006 23:28:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
It loads correctly, but I can&#39;t change the colors of the text. Is there a way to do this using 32-bit colored fonts?
</p></div></div><p>
No, but you can use an 8 bit colour font and change the palette.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I am asking, because I want to have a colored outline on the font, but be able to change the inside color of the font.
</p></div></div><p>
Again, this is easy if your font is 8 bit and you manipulate the palette.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Tue, 09 May 2006 01:19:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I don&#39;t understand you at all....<br />to change the color do as I say :</p><div class="source-code snippet"><div class="inner"><pre>      <span class="c">/* Important texts go in the middle. */</span>
      width <span class="k3">=</span> <a href="http://www.allegro.cc/manual/text_length" target="_blank"><span class="a">text_length</span></a><span class="k2">(</span><span class="s">"GAME OVER"</span><span class="k2">)</span><span class="k2">;</span>
      <a href="http://www.allegro.cc/manual/textout_centre_ex" target="_blank"><span class="a">textout_centre_ex</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <a href="http://www.allegro.cc/manual/font" target="_blank"><span class="a">font</span></a>, <span class="s">"GAME OVER"</span>,
                        <a href="http://www.allegro.cc/manual/SCREEN_W" target="_blank"><span class="a">SCREEN_W</span></a> <span class="k3">/</span> <span class="n">2</span>, <a href="http://www.allegro.cc/manual/SCREEN_H" target="_blank"><span class="a">SCREEN_H</span></a> <span class="k3">/</span> <span class="n">2</span>,
                        <a href="http://www.allegro.cc/manual/makecol32" target="_blank"><span class="a">makecol32</span></a><span class="k2">(</span><span class="n">255</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span>, <a href="http://www.allegro.cc/manual/makecol" target="_blank"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

I use 32 bit color in my game and I can change the color of a single letter at maximum. In my game for example there is a &#39;Matrix&#39; style text flow...<br />Are you trying to put more colors upon a single letter ? <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><br />Make a Bitmap an create an handling class... yeah, if this is the problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LordHolNapul)</author>
		<pubDate>Tue, 09 May 2006 02:15:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Are you trying to put more colors upon a single letter ? <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><br />Make a Bitmap an create an handling class...
</p></div></div><p>
Why? Allegro can deal with coloured fonts just fine.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Tue, 09 May 2006 02:25:18 +0000</pubDate>
	</item>
</rss>
