Framebuffer:getImageData

Framebuffer:getImageData Available since LÖVE 0.7.0 This function is not supported in earlier versions. Removed in LÖVE 0.8.0 It has been renamed to Canvas:getImageData. Returns the image data stored in the Framebuffer. Think of it as a screenshot of the hidden screen that is the framebuffer. Function Synopsis data = Framebuffer:getImageData( ) Arguments None. Returns ImageData data The image data stored in the framebuffer. See Also Framebuffer love.graphics.newScreenshot

Font:setLineHeight

Font:setLineHeight Sets the line height. When rendering the font in lines the actual height will be determined by the line height multiplied by the height of the font. The default is 1.0. Function Synopsis Font:setLineHeight( height ) Arguments number height The new line height. Returns Nothing. See Also Font Font:getLineHeight

Font:setFilter

Font:setFilter Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the filter mode for a font. Function Synopsis Font:setFilter( min, mag, anisotropy ) Arguments FilterMode min How to scale a font down. FilterMode mag How to scale a font up. number anisotropy (1) Maximum amount of anisotropic filtering used. Returns Nothing. See Also Font FilterMode

Font:setFallbacks

Font:setFallbacks Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets the fallback fonts. When the Font doesn't contain a glyph, it will substitute the glyph from the next subsequent fallback Fonts. This is akin to setting a "font stack" in Cascading Style Sheets (CSS). Function Synopsis Font:setFallbacks( fallbackfont1, ... ) Arguments Font fallbackfont1 The first fallback Font to use. Font ... Additional fallback Fonts. Returns Nothing. Notes If this

Font:hasGlyphs

Font:hasGlyphs Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the Font can render a character or string. Function Synopsis hasglyphs = Font:hasGlyphs( text ) Arguments string text A UTF-8 encoded unicode string. Returns boolean hasglyph Whether the font can render all the UTF-8 characters in the string. Function Synopsis hasglyphs = Font:hasGlyphs( character1, character2, ... ) Arguments string character1 A unicode character. string chara

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

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: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: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: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