[HOpenGL] Render fonts in HopenGL

Tillmann Vogt Tillmann.Vogt at rwth-aachen.de
Mon Jul 25 15:34:59 CEST 2011


Am 27.02.2011 07:48, schrieb er9999:
> Hello,
>      Can anyone give me an example for fonts rendering? I tried to use 
> FTGL library, but it is too complicated on Windows(compile). Is it 
> possible to do it in a simple way? I need more than the given example 
> in red book(Font.hs), something like outline font. By the way, I am 
> new in OpenGL and Haskell, so the real exmaple should be the best. 
> Thanks!
Hi

It is maybe a little bit late to answer this mail, but at the end of 
february my library (http://hackage.haskell.org/package/SVGFonts) was in 
not such a good state to advertise it. But now it has reached version 
1.0 and a lot of errors have been corrected! It has most of the 
capabilities of freetype2, ftgl and pango in only 44KB of code. This is 
about 100 times smaller than freetype2. It also has a very easy and 
powerful interface without forcing you into using the IO monad. It is a 
native Haskell library without the need to install any C-library, so it 
should work on every operating system. It is also quite fast. The 
example that comes with the library generates 62 character textures in 
about a second.

I am looking forward to adjust this library to anybodys needs (for 
example another scengraph). I also want to encourage people to write 
native libraries instead of bindings. It can be done!



More information about the HOpenGL mailing list