sdl2-ttf-2.0.2: Bindings to SDL2_ttf.

Copyright(c) 2015 Siniša Biđin
LicenseMIT
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

SDL.Raw.Font

Contents

Description

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.

Synopsis

General

init :: forall m. MonadIO m => m CInt Source #

wasInit :: forall m. MonadIO m => m CInt Source #

quit :: forall m. MonadIO m => m () Source #

getVersion :: forall m. MonadIO m => m (Ptr Version) Source #

Loading fonts

data Font Source #

The raw, underlying TTF_Font struct.

type FontPath = CString Source #

A path to a font file.

type PointSize = CInt Source #

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

type Free = CInt Source #

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

type Index = CLong Source #

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

closeFont :: MonadIO m => Ptr Font -> m () Source #

Font attributes

setFontStyle :: MonadIO m => Ptr Font -> CInt -> m () Source #

pattern TTF_STYLE_NORMAL :: forall a. (Num a, Eq a) => a Source #

pattern TTF_STYLE_BOLD :: forall a. (Num a, Eq a) => a Source #

pattern TTF_STYLE_ITALIC :: forall a. (Num a, Eq a) => a Source #

pattern TTF_STYLE_UNDERLINE :: forall a. (Num a, Eq a) => a Source #

pattern TTF_STYLE_STRIKETHROUGH :: forall a. (Num a, Eq a) => a Source #

pattern TTF_HINTING_NORMAL :: forall a. (Num a, Eq a) => a Source #

pattern TTF_HINTING_LIGHT :: forall a. (Num a, Eq a) => a Source #

pattern TTF_HINTING_MONO :: forall a. (Num a, Eq a) => a Source #

pattern TTF_HINTING_NONE :: forall a. (Num a, Eq a) => a Source #

Getting text size

Rendering text

Other

pattern UNICODE_BOM_NATIVE :: forall a. (Num a, Eq a) => a Source #

pattern UNICODE_BOM_SWAPPED :: forall a. (Num a, Eq a) => a Source #