Fixture:setUserData

Fixture:setUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Associates a Lua value with the fixture. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Fixture:setUserData( value ) Arguments any value The Lua value to associate with the fixture. Returns Nothing. See Also Fixture Fixture:getUserData

Fixture:testPoint

Fixture:testPoint Available since LÖVE 0.8.0 This method is not supported in earlier versions. Checks if a point is inside the shape of the fixture. Function Synopsis isInside = Fixture:testPoint( x, y ) Arguments number x The x position of the point. number y The y position of the point. Returns boolean isInside True if the point is inside or false if it is outside. See Also Fixture

Font:getAscent

Font:getAscent Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the ascent of the Font. The ascent spans the distance between the baseline and the top of the glyph that reaches farthest from the baseline. Function Synopsis ascent = Font:getAscent( ) Arguments None. Returns number ascent The ascent of the Font in pixels. See Also Font Font:getDescent Font:getBaseline

Font:getBaseline

Font:getBaseline Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the baseline of the Font. Most scripts share the notion of a baseline: an imaginary horizontal line on which characters rest. In some scripts, parts of glyphs lie below the baseline. Function Synopsis baseline = Font:getBaseline( ) Arguments None. Returns number baseline The baseline of the Font in pixels. See Also Font Font:getAscent Font:getDescent

Font:getDescent

Font:getDescent Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the descent of the Font. The descent spans the distance between the baseline and the lowest descending glyph in a typeface. Function Synopsis descent = Font:getDescent( ) Arguments None. Returns number descent The descent of the Font in pixels. See Also Font Font:getAscent Font:getBaseline

Font:getFilter

Font:getFilter Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the filter mode for a font. Function Synopsis min, mag, anisotropy = Font:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the font. FilterMode mag Filter mode used when magnifying the font. number anisotropy Maximum amount of anisotropic filtering used. See Also Font FilterMode

Font:getHeight

Font:getHeight Gets the height of the Font. The height of the font is the size including any spacing; the height which it will need. Function Synopsis height = Font:getHeight( ) Arguments None. Returns number height The height of the Font in pixels. See Also Font

Font:getLineHeight

Font:getLineHeight Gets the line height. This will be the value previously set by Font:setLineHeight, or 1.0 by default. Function Synopsis height = Font:getLineHeight( ) Arguments None. Returns number height The current line height. See Also Font Font:setLineHeight

Font:getWidth

Font:getWidth Determines the horizontal size a line of text needs. Does not support line-breaks. Function Synopsis width = Font:getWidth( line ) Arguments string line A string. Returns number width The width of the line. See Also Font

Font:getWrap

Font:getWrap Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets formatting information for text, given a wrap limit. This function accounts for newlines correctly (i.e. '\n'). Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis width, wrappedtext = Font:getWrap( text, wraplimit ) Arguments string text The text that will be wrapped. number wraplimit The maximum width in pixels of each line that text is allo