package ocamlsdl2-ttf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type font
type color = {
  1. r : int;
  2. g : int;
  3. b : int;
  4. a : int;
}
val init : unit -> unit
val quit : unit -> unit
val was_init : unit -> bool
val open_font : file:string -> ptsize:int -> font
val open_font_index : file:string -> ptsize:int -> index:int -> font
val close_font : font -> unit
val render_text_solid : font -> text:string -> color:color -> Sdlsurface.t
val render_utf8_solid : font -> text:string -> color:color -> Sdlsurface.t
val render_text_shaded : font -> text:string -> fg:color -> bg:color -> Sdlsurface.t
val render_utf8_shaded : font -> text:string -> fg:color -> bg:color -> Sdlsurface.t
val render_text_blended : font -> text:string -> color:color -> Sdlsurface.t
val render_utf8_blended : font -> text:string -> color:color -> Sdlsurface.t
val size_text : font -> string -> int * int
val size_utf8 : font -> string -> int * int