function love.load()
font1 = love.graphics.newFont(50)
font2 = love.graphics.newFont(100)
end
function love.draw()
love.graphics.setFont(font1)
love.graphics.print("Some text with font1", 10, 10)
love.graphics.setFont(font2)
love.graphics.print("Some text with font2", 10, 100)
end
Alternatively, if the only thing you change is the size of the fonts, you can use setNewFont.
It's not only about processing speed, but the amount of garbage it creates in memory. Well, probably.
Last edited by zorg on Wed Mar 01, 2017 8:11 pm, edited 1 time in total.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.