[HOpenGL] Render fonts in HopenGL

er9999 er9999 at 126.com
Mon Feb 28 00:29:27 CET 2011


 Hello,
    Do you know where I can find some example code for this library? I mean how I can render the loaded font? If possible, could you give me an example how to render outline font or texture font? I cannot even find any examples in Haskell. Thanks!


-- Yu


At 2011-02-27,"Balazs Komuves" <bkomuves at gmail.com> wrote:

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/20110228/02a6e569/attachment.htm>


More information about the HOpenGL mailing list