Text
DrawText()
// Ritar ut texten "Hello World" på x-position 100 och y-position 50,
// med text i storlek 20 och med orange färg.
Raylib.DrawText("Hello World", 100, 50, 20, Color.ORANGE);LoadFont()
Font f1 = Raylib.LoadFont(@"Metrophobic.ttf");LoadFontEx()
// Ladda in typsnittsfilen Lato-Regular.ttf, i storleken 36.
// Vi anger null eftersom vi inte vill ange exakt vilka tecken som ska laddas in.
// VI anger -1 eftersom vi inte vill ange ett maxantal tecken att ladda in.
Font f2 = Raylib.LoadFontEx(@"Lato-Regular.ttf", 36, null, -1);DrawTextEx()
Last updated