Measure string size for Font
// Measure text dimensions using a custom font font = raylib.LoadFont("resources/myfont.ttf") if raylib.IsFontValid(font) then size = raylib.MeasureTextEx(font, "Hello!", 24, 1) print "Width: " + size[0] + " Height: " + size[1] raylib.UnloadFont font end if
There was an error while loading. Please reload this page.