Skip to content

haskell-game/sdl2-ttf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdl2-ttf

Hackage

Haskell bindings to SDL2_ttf

Haskell bindings for the True Type Font library for SDL.

Both the raw and the higher level bindings should allow you to use any aspect of the original SDL2_ttf library. Please report an issue if you encounter a bug or feel that something is missing.

Install
git clone [email protected]:haskell-game/sdl2-ttf.git
cd sdl2-ttf
cabal install
Example

A small example executable is included with the library. It loads a given font and uses it to display text in various ways. You can find it in the example directory.

Note: this example works, but is written in sdl1-style, so instead you should change surfaces to textures and follow the usual sdl2 API.

cd sdl2-ttf
cabal configure -fexample
cabal run path/to/some/font.type

About

All credit be to @osa1 and friends for their initial effort!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 91.1%
  • C 8.9%