Module macroquad::text[][src]

Functions to load fonts and draw text.

Structs

Font

TTF font loaded to GPU

TextDimensions

World space dimensions of the text, measured by “measure_text” function

TextParams

Arguments for “draw_text_ex” function such as font, font_size etc

Functions

draw_text

Draw text with given font_size

draw_text_ex

Draw text with custom params such as font, font size and font scale.

load_ttf_font

Load font from file with “path”

load_ttf_font_from_bytes

Load font from bytes array, may be use in combination with include_bytes!

measure_text