HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Contents
  1. General
  2. Loading fonts
  3. Font attributes
  4. Getting text size
  5. Rendering text
  6. Other
Synopsis
  • Packagesdl2-ttf-2.1.3
  • Exports63
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFont.hsc

General

Loading fonts

datadata Font

The raw, underlying TTF_Font struct.

typetype Index = CLong

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

Font attributes

Getting text size

Rendering text

Other