Just let me draw nice text already.
This is a text rendering library that uses OpenGL and freetype2 to render TTF font strings quickly. It is fast enough to render large chunks of text in real time. This library exists because text rendering is one of the biggest hurdles in Haskell graphics programming - and it shouldn't be! Typograffiti includes an MTL style typeclass and a default monad transformer. It does not assume you are using any specific windowing solution. It does assume you are using OpenGL 3.3+. Pull requests are very welcome :) See https://github.com/schell/typograffiti/blob/master/app/Main.hs for an example.
Typograffiti
GitHubHackageMirroralt issue tracker Typograffiti aims to make working with text across a broad range of written languages in multimedia applications easy. Whilst exposing low-level APIs for use by fancier text layout/rendering engines.
Typograffiti is part of The Argonaut Stack browser engine.
requirements
- opengl 3.x
- freetype 2.x
- harfbuzz 3.3+
- LibC++ (for Text dependency)
The demo program additionally requires SDL2.