Tsdl_ttf.TtfSDL2_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.resultval init : unit -> unit resultval close_font : font -> unitval open_font_rw : Tsdl.Sdl.rw_ops -> int -> int -> font resultval open_font_index_rw : Tsdl.Sdl.rw_ops -> int -> int -> int64 -> font resultmodule Style : sig ... endval get_font_outline : font -> intval set_font_outline : font -> int -> unitmodule Hinting : sig ... endval get_font_kerning_size : font -> int -> int -> intval font_height : font -> intval font_ascent : font -> intval font_descent : font -> intval font_line_skip : font -> intval get_font_kerning : font -> boolval set_font_kerning : font -> bool -> unitval font_faces : font -> int64val font_face_is_fixed_width : font -> intval font_face_family_name : font -> stringval font_face_style_name : font -> stringval glyph_is_provided : font -> int -> boolmodule GlyphMetrics : sig ... endval glyph_metrics : font -> int -> GlyphMetrics.t resultval render_text_solid :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_utf8_solid :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_glyph_solid :
font ->
int ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_text_shaded :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_utf8_shaded :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_glyph_shaded :
font ->
int ->
Tsdl.Sdl.color ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_text_blended :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_utf8_blended :
font ->
string ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface resultval render_text_blended_wrapped :
font ->
string ->
Tsdl.Sdl.color ->
int32 ->
Tsdl.Sdl.surface resultval render_utf8_blended_wrapped :
font ->
string ->
Tsdl.Sdl.color ->
int32 ->
Tsdl.Sdl.surface resultval render_glyph_blended :
font ->
int ->
Tsdl.Sdl.color ->
Tsdl.Sdl.surface result