Re: Render fonts in HopenGL
Balazs Komuves <[email protected]> Sun, 27 Feb 2011 11:49:51 +0100
| Newsgroups | gmane.comp.lang.haskell.hopengl |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> > 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 > [email protected] > http://www.haskell.org/mailman/listinfo/hopengl > > _______________________________________________ HOpenGL mailing list [email protected] http://www.haskell.org/mailman/listinfo/hopengl