<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro TTF</title>
		<link>http://www.allegro.cc/forums/view/205957</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 11 Sep 2002 02:50:48 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#039;m using a library called Allegro TTF to display antialiased true type fonts.</p><p><a href="http://huizen.dds.nl/~deleveld/allegttf.htm">http://huizen.dds.nl/~deleveld/allegttf.htm</a></p><p>The loading function reads the a TTF file and converts it to a FONT with antialiasing. What I want to do is save this into a datafile so that I don&#039;t need to keep a .ttf file in my game directory. I basically need a function that will export the font as data which I can grab into grabber. I&#039;ve tried to adapt the &quot;font plugin&quot; source code (from grabber) without much success. I&#039;m not even sure just using export_font would work anyway, since that might loose the antialiasing information if the font was converted to a bmp/txt file. All I really need to do is save the raw data, but I don&#039;t know how to find the number of bytes of a font so I couldn&#039;t specify how much data to write. Can anyone help. I&#039;m in 32 bit color depth at 640x480.</p><p>FONT *smoothfont;<br />smoothfont = load_ttf_font(&quot;verdana.ttf&quot;, 12, ALLEGTTF_REALSMOOTH);</p><p>I&#039;m not at all sure how this library antialiases text since when I use aatextout, -- the output is antialiased text, but I seem to get antialiased text when I use plain old textout. I don&#039;t know why.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edward Griffin)</author>
		<pubDate>Wed, 11 Sep 2002 01:28:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#039;s what ttf2pcs is for <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /><br />You can grab a copy of that program from this site... not sure where it is, though.</p><p>Check the files section on the main page.</p><p>I&#039;m not sure, but I think allegTTF comes with it&#039;s own version of ttf2pcx.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (spellcaster)</author>
		<pubDate>Wed, 11 Sep 2002 01:50:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you are getting smooth text with plain textout it is because you have made a coloured font.  This can have a couple of problems
</p><ul><li><p> when you print onto a different colour background you get fringes</p></li><li><p> You cannot change the colour of the text with text_mode</p></li></ul><p>

There are functions which people have written which take a greyscale bitmap font and let you print it anti-aliased in any colour, but textout won&#039;t do that by itself.</p><p>If you like a GUI version of ttf2pcx but don&#039;t run Windows, then here is <a href="http://www.the-good-stuff.freeserve.co.uk/allegro/ttf2pcx/">one I knocked up</a> which uses the Allegro GUI and works in Linux and DOS.   This needs the AllegroFont library which is similar to AllegroTTF
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matt Smith)</author>
		<pubDate>Wed, 11 Sep 2002 02:49:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you work in a hicolor mode, the fastest way to work with fonst is to select a palette with changed values, so it blends nicely into the bg.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (spellcaster)</author>
		<pubDate>Wed, 11 Sep 2002 02:50:48 +0000</pubDate>
	</item>
</rss>
