-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageTextEx
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Create an image from text (custom sprite font) WARNING: Module required: rtext
| Parameter | Default Value | Note |
|---|---|---|
| font | ||
| text | ||
| fontSize | ||
| spacing | ||
| tint |
| Condition | Return Value |
|---|---|
| (always) | map |
font = raylib.LoadFont("font.ttf")
img = raylib.ImageTextEx(font, "Hello", 20, 2, raylib.WHITE)
raylib.UnloadImage img
raylib.UnloadFont font