text_contours
text_contours(filename, size, x, y, text, precision, [timeout])
Convert text to polygon contours (list of coordinate)
Syntaxe
text_contours(filename="Arial.ttf", size=100, x=10, y=10, text="Hello", tolerance=10)
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
filename | yes | - | Font file (.ttf) |
size | yes | - | Font size |
x | yes | - | x-coordinate of the left |
y | yes | - | y-coordinate of the bottom |
text | yes | - | Text string |
precision | yes | - | Contour detail level (higher = more precise) |
timeout | - | - | Network timeout in ms (optional) |