<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>bitmap font (using ttf2pcx) using alpha channel</title>
		<link>http://www.allegro.cc/forums/view/431118</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 18 Nov 2004 11:32:28 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Hello,</p><p>Is there a way to draw bitmap font (using ttf2pcx) using alpha channel ?<br />I know pcx do not handle alpha channel so using a 32 bits tga+alpha or a 256 colors BMP with another grayscale BMP file as alpha channel.</p><p>Thanks</p><p>Eviral
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Eviral Derf)</author>
		<pubDate>Wed, 17 Nov 2004 18:36:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The allergo font and text routines are very flexible, so yes you could rewrite your vtables to output alpha channel fonts, however you would have to write your own routines to piggy back on top of the existing ones for backwards compatibility, this means you will (I think) have to write a loader (I&#39;m not sure if PCX stores additional information that TGA may not support).  You will also have to override the vtables (this isn&#39;t as hard as it seems).  Basically make font-&gt;data point to your data containing all the loaded alpha glyphs and font-&gt;vtable point to your custom vtable for rendering these glyphs, this can all be done in a load_alpha_font function or whatever you wish to call it.  If you want any more assistance you can either poke around font.c in the allergro source directory for clues (I think aintern.c/.h also has a few clues on how to do this as well).  Hope this helps.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Steve Terry)</author>
		<pubDate>Wed, 17 Nov 2004 20:02:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you are using OpenGL/AllegroGL you can use my TGA font lib. (Attached)</p><p>If not, you could create your own tga font blitter. My code should be simple enough to give you an idea of what to do.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Gnatinator)</author>
		<pubDate>Wed, 17 Nov 2004 22:54:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you are making fonts with ttf2pcx, you might try using using ttf font directly in your program. You can get alpha-transparent glyphs with my <a href="http://kd.lab.nig.ac.jp/glyph-keeper/">font lib</a>, like in this <a href="http://kd.lab.nig.ac.jp/glyph-keeper/examples.html#exchess">example</a>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kirr)</author>
		<pubDate>Thu, 18 Nov 2004 11:32:28 +0000</pubDate>
	</item>
</rss>
