Skip to contents

Create an image from text (default font).

Usage

image_text(text, font_size, color)

Arguments

text

A string.

font_size

An integer.

color

A color.

Value

An image

Note

This function has been auto-generated from the following Raylib function definition:

Image ImageText(const char *text, int fontSize, Color color);

See also

color() for creating color objects.

Other image functions: export_image_as_code(), export_image(), gen_image_cellular(), gen_image_checked(), gen_image_color(), gen_image_gradient_h(), gen_image_gradient_radial(), gen_image_gradient_v(), gen_image_white_noise(), get_image_alpha_border(), get_image_color(), image_alpha_clear(), image_alpha_crop(), image_alpha_mask(), image_alpha_premultiply(), image_clear_background(), image_color_brightness(), image_color_contrast(), image_color_grayscale(), image_color_invert(), image_color_replace(), image_color_tint(), image_copy(), image_crop(), image_dither(), image_draw_circle_v(), image_draw_circle(), image_draw_line_v(), image_draw_line(), image_draw_pixel_v(), image_draw_pixel(), image_draw_rectangle_lines(), image_draw_rectangle_rec(), image_draw_rectangle_v(), image_draw_rectangle(), image_draw_text_ex(), image_draw_text(), image_draw(), image_flip_horizontal(), image_flip_vertical(), image_format(), image_from_image(), image_mipmaps(), image_resize_canvas(), image_resize_nn(), image_resize(), image_rotate_ccw(), image_rotate_cw(), image_text_ex(), image_to_pot(), load_font_from_image(), load_image_from_screen(), load_image_from_texture(), load_image_raw(), load_image(), load_texture_from_image(), unload_image_colors(), unload_image_palette(), unload_image()

Other text functions: draw_text_codepoint(), draw_text_ex(), draw_text_pro(), draw_text(), image_draw_text_ex(), image_draw_text(), image_text_ex(), load_file_text(), measure_text_ex(), measure_text(), text_find_index(), text_insert(), text_replace(), text_to_integer(), text_to_lower(), text_to_pascal(), text_to_upper()