Here it is exemplified in a GUI object I was working on - left is the image with 3 identical love.graphics.print() commands in a row drawn to a Canvas, and on the right is with just the one line.
The following code also creates the effect on my machine and a friend who tested his. The text from the Canvas appears less smooth than the text printed above it - any ideas why?
Code: Select all
function love.load()
text = "Hello World"
canvas = love.graphics.newCanvas()
canvas:renderTo(function() love.graphics.print(text,1,1)end)
end
function love.update(dt)
end
function love.draw()
love.graphics.print(text,10,10)
love.graphics.draw(canvas,10,30)
end