Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Jefferson Heard <jefferson.r.heard <at> gmail.com>
Subject: ANN: FTGL 1.0. Portable truetype font rendering in OpenGL
Newsgroups: gmane.comp.lang.haskell.cafe
Date: Thursday 7th August 2008 19:43:21 UTC (over 9 years ago)
Hi folks.  I've just released some Haskell bindings to FTGL at
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/FTGL
.
FTGL is an easy to use library for portable rendering of TrueType
fonts in OpenGL, with functions for creating bitmapped fonts,
texture-mapped fonts, buffered fonts, polygonal 2D fonts, and extruded
polygonal 3D fonts.  The code works on Windows and Linux.  I've not
tested it yet on the Mac.

To use FTGL in your programs, just import Graphics.Rendering.FTGL and use

do
  font <- createTextureFont "font.ttf"
  setFontFaceSize font 24 72
  renderFont font "some string"

More documentation can be found at the FTGL homepage at
http://ftgl.sourceforge.net

-- Jeff
 
CD: 3ms