Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.graphics.newFont( filename, size )
Fonts loaded with FreeType.
Usage
love.graphics.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.graphics.newFont("Vera.ttf", 40)
small = love.graphics.newFont("SomeAwesomeZeldaFont.ttf", 8)