[HOpenGL] Render fonts in HopenGL

Tillmann Vogt Tillmann.Vogt at rwth-aachen.de
Mon Jul 25 18:12:17 CEST 2011


Am 25.07.2011 16:28, schrieb Felipe Almeida Lessa:
> On Mon, Jul 25, 2011 at 10:34 AM, Tillmann Vogt
> <Tillmann.Vogt at rwth-aachen.de>  wrote:
>> 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.
> Very interesting! =)
>
>> It is also quite fast. The example that comes with the
>> library generates 62 character textures in about a second.
> So, is 62 chars/s fast?  And where is most of the time spent?
>
> Cheers,
>
It is probably not fast. A graphics card can raster high resoultions 100 
times a second. But font libraries can't use this rasterization 
mechanism (I guess) because of autohinting (making fonts look good on 
low resoultions). For me it is fast enough. The last time I profiled the 
xml parsing was the biggest problem. But I haven't profiled for quite a 
while because of Ticket #282 of cabal. I don't want to manually compile 
every library with profiling.



More information about the HOpenGL mailing list