--Colors
white=(255,255,255)
--Font
font=Font.load("font.ttf")
font:setPixelSizes(0,10)
--Functions
function printCenteredfont(y,text,color)
local length = string.len(text)
local x = 240 - ((length*8)/2)
screen:fontPrint(font,x,y,text,color)
end
--Main Loop
while true do
screen:clear()
printCentered(100,"Wow, its my font and its in the middle!",white)
screen.waitVblankStart()
screen.flip()
end