TextSetFontName

Syntax

TextSetFontName(Text, FontName$="")

Description

Updates the font family name for a given text object.

Parameters

Text
The handle of the text object.

FontName$ (optional)
The name of the font family (e.g., “Arial”, “Segoe UI”). If left empty "", it defaults to the system UI font.

Return Value

Returns #True if the font was successfully changed, or #False if the text handle was invalid.

See Also

CreateText, TextSetFontSize

Supported OS

Windows, Linux