[Haskell-cafe] Rendering TTF fonts in Haskell and OpenGL

Luke Palmer lrpalmer at gmail.com
Sun Feb 17 20:26:17 EST 2008

On Feb 18, 2008 12:20 AM, Brandon S. Allbery KF8NH <allbery at ece.cmu.edu> wrote:
> On Feb 17, 2008, at 19:13 , Jefferson Heard wrote:
> > In C and in Java, I can use truetype fonts in Haskell using select
> > libraries, and I'd like to be able to do the same in Haskell.  Are
> > there any portable libraries out there for loading fonts into OpenGL
> > geometry for Haskell?  I can use the vector fonts from GLUT is
> > absolutely neccessary, but I'd like something that looks a little more
> > professional.  Are there any suggestions?
> Can't speak to OpenGL per se, but have a look at:
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/SDL-ttf-0.4.0
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-xft-0.2

I have an immature, but precise and picky implementation that renders text in
a ttf font to an OpenGL texture (using SDL-ttf) here:
(It may have some dependencies in the same directory).  Text support is
way at the bottom.

Good Luck,


More information about the Haskell-Cafe mailing list