Need help with different font sizes
Posted: Tue Jan 08, 2013 11:21 am
Hello, first time poster here.
I've been working with Love2d for a short while but I have the hang of it, except with fonts.
I don't understand how to make a game with 2 different font sizes with two different texts.
So I have a text that says "Score: "..hero.score and the score is supposed to be in the default font size of 16 which I set at the load with
but then I have another text that I want to set the font size to 24, how do I do this? The only way I can get bigger fonts is if I put the setNewFont in the draw, but that lags hard. I can also scale, but the text looks really bad.
Any examples of 2 different fonts with 2 separate texts? I can't find it on the wiki.
I've been working with Love2d for a short while but I have the hang of it, except with fonts.
I don't understand how to make a game with 2 different font sizes with two different texts.
So I have a text that says "Score: "..hero.score and the score is supposed to be in the default font size of 16 which I set at the load with
Code: Select all
love.graphics.setNewFont(16)
Any examples of 2 different fonts with 2 separate texts? I can't find it on the wiki.