I&#39;m excited to announce the immediate availability of FreeType 2 bindings on hackage.  These bindings are based off the 2.4.4 release of FreeType 2 and use the BSD licensing option for FreeType 2.  This package should be of interest to OpenGL users as it provides a way to get nice looking fonts into your OpenGL programs.<div>
<br></div><div>This binding is still in its infancy, hence version 0.0.1, but enough of the API is exposed that I was able to convert the example1.c program in the FreeType tutorial to Haskell.  Here are a few relevant links:</div>
<div><br></div><div>  * What is FreeType: <a href="http://www.freetype.org/freetype2/index.html">http://www.freetype.org/freetype2/index.html</a></div><div>  * Example program and tutorial:</div><div>    * <a href="http://www.freetype.org/freetype2/docs/tutorial/step1.html">http://www.freetype.org/freetype2/docs/tutorial/step1.html</a></div>
<div>    * <a href="http://www.freetype.org/freetype2/docs/tutorial/example1.c">http://www.freetype.org/freetype2/docs/tutorial/example1.c</a></div><div>  * Haskell version of tutorial:</div><div>    * <a href="https://github.com/dagit/freetype2/blob/cabalization/Main.hs">https://github.com/dagit/freetype2/blob/cabalization/Main.hs</a></div>
<div>  * Example program output (yes, their tutorial example really does draw the bitmap as a grid of text, scroll around to find the word &quot;blah&quot;), more interesting examples to come later:</div><div>    * <a href="http://hpaste.org/45239/aoeu">http://hpaste.org/45239/aoeu</a></div>
<div><br></div><div>The current API level is &quot;raw&quot; and makes no attempts to present a good Haskell-like interface to the library.  My plan is to build a higher level interface on top once a sufficient portion of the API is available to Haskell.</div>
<div><br></div><div>You can find the source on github in the cabalization branch:</div><div>  * <a href="https://github.com/dagit/freetype2">https://github.com/dagit/freetype2</a></div><div><br></div><div>Patches welcome!</div>
<div><br></div><div>Thanks,</div><div>Jason</div><div><br></div><div><br></div>