load_text
load_text(filename, size, [timeout])
Loads a font file (ttf, otf) at a given size from the specified folder or the system font directories, and makes it active for subsequent text() calls.
Syntaxe
load_text(filename="Arial.ttf", size=15)
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
filename | yes | - | Path to a TrueType/OTF font file |
size | yes | - | Font size |
timeout | - | - | Network timeout in ms (optional) |