Skip to content

$getSystemFonts

Returns a semicolon-separated list of all font names discovered on the current system (Windows, macOS, or Linux).

Syntax

$getSystemFonts[]

Use Case

Use this to find exactly what names you can pass to $setFont or $drawText without needing a full file path.

Example

$createCanvas[400;200;white]
$drawText[10;10;Available Fonts: $getSystemFonts[];black;10;max_width=380]

[!NOTE] The list is generated by scanning standard system font directories on the first call and is cached for performance.