On Feb 18, 2008 12:20 AM, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]> 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: http://svn.luqui.org/svn/misc/luke/work/code/haskell/frp/Fregl/Draw.hs (It may have some dependencies in the same directory). Text support is way at the bottom. Good Luck, Luke _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
