HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulesdl2-ttf-2.1.3Haskell2010

SDL.Raw.Font

Raw bindings to the SDL2_ttf library. No error-handling is done here. For more information about specific function behaviour, see the SDL2_ttf documentation.

  • 5 types
  • 47 values
  • Packagesdl2-ttf-2.1.3
  • Exports63
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFont.hsc

General

4 declarations

Loading fonts

10 declarations
datadata Font
#

The raw, underlying TTF_Font struct.

typetype PointSize = CInt
#

Point size (based on 72DPI). Translates to pixel height.

typetype Free = CInt
#

Should the Ptr RWops be freed after an operation? 1 for yes, 0 for no.

typetype Index = CLong
#

Indicates the font face we're loading. First face is always 0.

Font attributes

28 declarations

Getting text size

3 declarations

Rendering text

15 declarations

Other

3 declarations