[HOpenGL] Render fonts in HopenGL
Balazs Komuves
bkomuves at gmail.com
Sun Feb 27 11:49:51 CET 2011
Hi,
The stb-truetype library (http://hackage.haskell.org/package/stb-truetype)
can rasterize TrueType fonts,
which then can be rendered with your preferred rendering method. It is
probably less mature than FTGL,
but should be easy to compile on windows (simply "cabal install
stb-truetype" should work, since
the source of the underlying C library is included in the cabal package, and
GHC includes a GCC
disribution).
Balazs
2011/2/27 er9999 <er9999 at 126.com>
> 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!
>
>
>
> _______________________________________________
> HOpenGL mailing list
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/hopengl/attachments/20110227/375588dc/attachment.htm>
More information about the HOpenGL
mailing list