Draw text (custom sprite font) within an image (destination)
None.
font = raylib.LoadFont("myfont.ttf") img = raylib.GenImageColor(200, 40, raylib.BLACK) raylib.ImageDrawTextEx img, font, "Hello!", [5, 5], 20, 2, raylib.WHITE raylib.ExportImage img, "label_custom.png" raylib.UnloadImage img raylib.UnloadFont font
There was an error while loading. Please reload this page.