Difference between revisions of "love.graphics.setFont"

 
m (1 revision: Imported docs from potato.)
(No difference)

Revision as of 15:54, 14 February 2010


Function

Synopsis

love.graphics.setFont( font )

Arguments

Font font
The Font object to use.

Returns

Nothing.

Function

Synopsis

love.graphics.setFont( filename, size )

Arguments

string filename
The filepath to the font.
number size (12)
The size of the font.

Returns

Nothing.

Function

Synopsis

love.graphics.setFont( size )

Arguments

number size (12)
The size of the font.

Returns

Nothing.

Examples

Draw some text with default font, 18px

love.graphics.setFont(18)

function love.draw()
	love.graphics.print("Hello", 300, 300)
end

See Also