Skip to contents

Measure string width for default font.

Usage

measure_text(text, font_size)

Arguments

text

A string.

font_size

An integer.

Value

An integer

Note

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

int MeasureText(const char * text, int fontSize);

Examples

if (FALSE) {
measure_text("Hello", 20L)
}