Raylib_textval get_font_default : unit -> Raylib_core.Font.tget_font_default () Get the default Font
val load_font : string -> Raylib_core.Font.tload_font file_name Load font from file into GPU memory (VRAM)
val load_font_ex :
string ->
int ->
int Raylib_core.CArray.t option ->
Raylib_core.Font.tload_font_ex file_name font_size codepoints codepoint_count Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont
val load_font_from_image :
Raylib_core.Image.t ->
Raylib_core.Color.t ->
int ->
Raylib_core.Font.tload_font_from_image image key first_char Load font from Image (XNA style)
val load_font_from_memory :
string ->
string ->
int ->
int ->
int Raylib_core.ptr ->
int ->
Raylib_core.Font.tload_font_from_memory file_type file_data data_size font_size codepoints codepoint_count Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
val is_font_valid : Raylib_core.Font.t -> boolis_font_valid font Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
val load_font_data :
string ->
int ->
int Raylib_core.ptr ->
int ->
int ->
Raylib_core.GlyphInfo.t Raylib_core.CArray.tload_font_data file_data font_size codepoints codepoint_count type Load font data for further use
val gen_image_font_atlas :
Raylib_core.GlyphInfo.t Raylib_core.ptr ->
Raylib_core.Rectangle.t Raylib_core.ptr Raylib_core.ptr ->
int ->
int ->
int ->
int ->
Raylib_core.Image.tgen_image_font_atlas glyphs glyph_recs glyph_count font_size padding pack_method Generate image font atlas using chars info
val unload_font_data : Raylib_core.GlyphInfo.t Raylib_core.ptr -> int -> unitunload_font_data glyphs glyph_count Unload font chars info data (RAM)
val unload_font : Raylib_core.Font.t -> unitunload_font font Unload font from GPU memory (VRAM)
val export_font_as_code : Raylib_core.Font.t -> string -> boolexport_font_as_code font file_name Export font as code file, returns true on success
val draw_text : string -> int -> int -> int -> Raylib_core.Color.t -> unitdraw_text text pos_x pos_y font_size color Draw text (using default font)
val draw_text_ex :
Raylib_core.Font.t ->
string ->
Raylib_core.Vector2.t ->
float ->
float ->
Raylib_core.Color.t ->
unitdraw_text_ex font text position font_size spacing tint Draw text using font and additional parameters
val draw_text_pro :
Raylib_core.Font.t ->
string ->
Raylib_core.Vector2.t ->
Raylib_core.Vector2.t ->
float ->
float ->
float ->
Raylib_core.Color.t ->
unitdraw_text_pro font text position origin rotation font_size spacing tint Draw text using Font and pro parameters (rotation)
val draw_text_codepoint :
Raylib_core.Font.t ->
int ->
Raylib_core.Vector2.t ->
float ->
Raylib_core.Color.t ->
unitdraw_text_codepoint font codepoint position font_size tint Draw one character (codepoint)
val draw_text_codepoints :
Raylib_core.Font.t ->
int Raylib_core.CArray.t ->
Raylib_core.Vector2.t ->
float ->
float ->
Raylib_core.Color.t ->
unitdraw_text_codepoints font codepoints codepoint_count position font_size spacing tint Draw multiple character (codepoint)
set_text_line_spacing spacing Set vertical line spacing when drawing with line-breaks
measure_text text font_size Measure string width for default font
val measure_text_ex :
Raylib_core.Font.t ->
string ->
float ->
float ->
Raylib_core.Vector2.tmeasure_text_ex font text font_size spacing Measure string size for Font
val measure_text_codepoints :
Raylib_core.Font.t ->
int Raylib_core.CArray.t ->
float ->
float ->
Raylib_core.Vector2.tmeasure_text_codepoints font codepoints font_size spacing Measure string size for an existing array of codepoints for Font
val get_glyph_index : Raylib_core.Font.t -> int -> intget_glyph_index font codepoint Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
val get_glyph_info : Raylib_core.Font.t -> int -> Raylib_core.GlyphInfo.tget_glyph_info font codepoint Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
val get_glyph_atlas_rec : Raylib_core.Font.t -> int -> Raylib_core.Rectangle.tget_glyph_atlas_rec font codepoint Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
val load_utf8 : int Raylib_core.ptr -> int -> char Raylib_core.ptrload_utf8 codepoints length Load UTF-8 text encoded from codepoints array
val unload_utf8 : char Raylib_core.ptr -> unitunload_utf8 text Unload UTF-8 text encoded from codepoints array
val load_codepoints : string -> int Raylib_core.ptr -> int Raylib_core.ptrload_codepoints text count Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
val unload_codepoints : int Raylib_core.ptr -> unitunload_codepoints codepoints Unload codepoints data from memory
get_codepoint_count text Get total number of codepoints in a UTF-8 encoded string
val get_codepoint : string -> int Raylib_core.ptr -> intget_codepoint text codepoint_size Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
val get_codepoint_next : string -> int Raylib_core.ptr -> intget_codepoint_next text codepoint_size Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
val get_codepoint_previous : string -> int Raylib_core.ptr -> intget_codepoint_previous text codepoint_size Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
val codepoint_to_utf8 : int -> int Raylib_core.ptr -> stringcodepoint_to_utf8 codepoint utf8_size Encode one codepoint into UTF-8 byte array (array length returned as parameter)
text_is_equal text1 text2 Check if two text string are equal
text_subtext text position length Get a piece of a text string
get_text_between text begin end Get text between two strings
text_replace text search replacement Replace text string with new string
text_replace_between text begin end replacement Replace text between two specific strings
text_insert text insert position Insert text in a defined byte position
text_find_index text find Find first text occurrence within a string
text_to_pascal text Get Pascal case notation version of provided string
text_to_snake text Get Snake case notation version of provided string
text_to_camel text Get Camel case notation version of provided string
text_to_integer text Get integer value from text (negative values not supported)