Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.objects:newFont( filename, size )
Fonts loaded with FreeType.
Usage
love.objects:newFont( filename, size )
Arguments
filenameThe filepath to the font file.
sizeThe size of the font.
Returns
FontA Font object containing the font data.
Examples
Example 1: Add some fonts. big = love.objects:newFont("Vera.ttf", 40);
small = love.objects:newFont("SomeAwesomeZeldaFont.ttf", 8);