Code: Select all
function love.load()
font1 = love.graphics.newFont("Candara.ttf",30)
font2 = love.graphics.newFont("Candara.ttf",70)
font3 = love.graphics.newFont("Candara.ttf",130)
end
function love.draw()
love.graphics.setFont(font1)
love.graphics.print("ABC",0,0) --Notice y = 0
love.graphics.setFont(font2)
love.graphics.print("ABC",50,0) --Notice y = 0
love.graphics.setFont(font3)
love.graphics.print("ABC",175,0) --Notice y = 0
end
All 3 sizes should be aligned along the top of the window, instead there's extra space above them. Is this supposed to happen? Because I don't want to have to figure out what to subtract the y number by every time I use a new font.