package tsdl-ttf
-
tsdl_ttf
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
SDL2_ttf bindings for use with Tsdl
The UCS-2 Unicode bindings have been omitted; UCS-2 is obsolete, and the current implementation of SDL2_ttf converts such strings to UTF-8 before using them anyway.
type 'a result = 'a Tsdl.Sdl.result
val init : unit -> unit result
val close_font : font -> unit
val open_font_rw : Tsdl.Sdl.rw_ops -> int -> int -> font result
val open_font_index_rw : Tsdl.Sdl.rw_ops -> int -> int -> int64 -> font result
module Style : sig ... end
val get_font_outline : font -> int
val set_font_outline : font -> int -> unit
module Hinting : sig ... end
val get_font_kerning_size : font -> int -> int -> int
val font_height : font -> int
val font_ascent : font -> int
val font_descent : font -> int
val font_line_skip : font -> int
val get_font_kerning : font -> bool
val set_font_kerning : font -> bool -> unit
val font_faces : font -> int64
val font_face_is_fixed_width : font -> int
val font_face_family_name : font -> string
val font_face_style_name : font -> string
val glyph_is_provided : font -> int -> bool
module GlyphMetrics : sig ... end
val glyph_metrics : font -> int -> GlyphMetrics.t result
val render_text_solid :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_utf8_solid :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_glyph_solid :
font ->
int ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_text_shaded :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_utf8_shaded :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_glyph_shaded :
font ->
int ->
Tsdl.Sdl.color ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_text_blended :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_utf8_blended :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result
val render_text_blended_wrapped :
font ->
string ->
Tsdl.Sdl.color ->
int32 ->
Tsdl.Sdl.surface result
val render_utf8_blended_wrapped :
font ->
string ->
Tsdl.Sdl.color ->
int32 ->
Tsdl.Sdl.surface result
val render_glyph_blended :
font ->
int ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result