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
Font:getWidth( line )
Determines the line length. Does not support line-breaks.
Usage
Font:getWidth( line )
Arguments
lineA line of text.
Returns
numberThe width of the font.