<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Android and Freetype</title>
		<link>http://www.allegro.cc/forums/view/611155</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 30 Sep 2012 06:58:19 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am having a problem with the TTF add-on on the Android port. Any time I try to load a TTF font I get this error:</p><pre class="terminal">Reading data/fonts/my_font.ttf failed. Freetype error code 85</pre><p>

I looked up the error code to see if I could figure out what went wrong. It is defined as Invalid_Stream_Operation but I have no idea what that means. Google doesn&#39;t return any useful discussion of this error. Has anyone else successfully used the TTF add-on on Android?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Todd Cope)</author>
		<pubDate>Sat, 29 Sep 2012 09:22:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have. It works with git head for me. Are you loading it from the filesystem or from the apk? Any more details?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Sat, 29 Sep 2012 09:54:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am loading from APK. I just downloaded the latest stable Freetype. Image files load just fine.</p><p>How did you build Freetype. Here is what I used:</p><pre class="terminal">./configure --host=arm-linux-androideabi --prefix=$TC --without-zlib \
   --enable-shared=no CFLAGS=&quot;-std=gnu99 -fPIC -mthumb -Wno-psabi \
   -march=armv7-a -mfloat-abi=softfp&quot;
make install</pre><p>

I copied this from some random site on the Internet so it may be wrong.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Todd Cope)</author>
		<pubDate>Sat, 29 Sep 2012 17:24:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Did you disable compression on the .apk? There&#39;s still a (somewhat serious) bug in Allegro&#39;s file routines which makes it not work on files inside a compressed .apk.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Sat, 29 Sep 2012 17:36:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;d call it an Android bug myself. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>But that&#39;s correct, apks must be uncompressed for the time being. There&#39;s one way around that and that&#39;s to use physfs directly on the APK (it&#39;s just a zip file). That&#39;s what I do in my latest game, and I find it&#39;s much better.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Sat, 29 Sep 2012 23:57:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>At some point I want to try out the file stream interface to the APK&#39;s contents. One would hope that they decompress on the fly via that interface.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Sun, 30 Sep 2012 02:59:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611155/967082#target">Elias</a> said:</div><div class="quote"><p>Did you disable compression on the .apk?</p></div></div><p>
No. I just followed the instructions in <tt>README_android.txt</tt>. Didn&#39;t see anything in there about the compression. How exactly would I go about disabling it? I wouldn&#39;t mind having an uncompressed APK since most of my data already use compressed file types.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Todd Cope)</author>
		<pubDate>Sun, 30 Sep 2012 06:13:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can find instructions on how to do it by Googling. Basically you add some lines of text to an XML file.</p><p>[I could Google it, but there is an old way and a new way, I&#39;m not sure which is which anymore... and it depends on which SDK you&#39;re using.]
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Sun, 30 Sep 2012 06:41:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Cool! I ended up modifying <tt>sdk-root/ant/build.xml</tt>. Just had to add a <tt>&lt;nocompress/&gt;</tt> to the <tt>package-resources</tt> target. Most of my game is working now! Thanks everyone!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Todd Cope)</author>
		<pubDate>Sun, 30 Sep 2012 06:58:19 +0000</pubDate>
	</item>
</rss>
