love.font.newTrueTypeRasterizer

love.font.newTrueTypeRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new TrueType Rasterizer. Function Create a TrueTypeRasterizer with the default font. Synopsis rasterizer = love.font.newTrueTypeRasterizer( size, hinting_mode ) Arguments number size The font size. HintingMode hinting_mode True Type hinting mode. Returns TrueTypeRasterizer rasterizer The rasterizer. See Also love.font love.font.newRasterizer love.font.newBMF

love.font.newRasterizer

love.font.newRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new Rasterizer. Function Synopsis rasterizer = love.font.newRasterizer( filename ) Arguments string filename The font file. Returns Rasterizer rasterizer The rasterizer. Function Synopsis rasterizer = love.font.newRasterizer( data ) Arguments FileData data The FileData of the font file. Returns Rasterizer rasterizer The rasterizer. Create a TrueTypeRasterizer. Funct

love.font.newGlyphData

love.font.newGlyphData Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new GlyphData. Function Synopsis glyphData = love.font.newGlyphData( rasterizer, glyph ) Arguments Rasterizer rasterizer The Rasterizer containing the font. number glyph The character code of the glyph. Returns GlyphData glyphData The GlyphData. See Also love.font GlyphData

love.font.newFontData

love.font.newFontData Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 This function is not supported in earlier or later versions. Creates a new FontData. Function Synopsis fontData = love.font.newFontData( rasterizer ) Arguments Rasterizer rasterizer The Rasterizer containing the font. Returns FontData fontData The FontData. See Also love.font FontData

love.font.newBMFontRasterizer

love.font.newBMFontRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new BMFont Rasterizer. Function Synopsis rasterizer = love.font.newBMFontRasterizer( imageData, glyphs ) Arguments ImageData imageData The image data containing the drawable pictures of font glyphs. string glyphs The sequence of glyphs in the ImageData. Returns BMFontRasterizer rasterizer The rasterizer. Function Synopsis rasterizer = love.font.newBMFontRasterizer(

love.focus

love.focus Available since LÖVE 0.7.0 This callback is not supported in earlier versions. Callback function triggered when window receives or loses focus. Function Synopsis love.focus( focus ) Arguments boolean focus True if the window gains focus, false if it loses focus. Returns Nothing. Example function love.load() text = "FOCUSED" end   function love.draw() love.graphics.print(text,0,0) end   function love.focus(f) if f then print("Window is focused.") text = "FOCUSED

love.filesystem.write

love.filesystem.write Write data to a file in the save directory. If the file existed already, it will be completely replaced by the new contents. Function Synopsis success = love.filesystem.write( name, data, size ) Arguments string name The name (and path) of the file. string data The string data to write to the file. number size (all) How many bytes to write. Returns boolean success If the operation was successful. Function Synopsis success = love.filesystem.write( name, data, size

love.filesystem.unmount

love.filesystem.unmount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Unmounts a zip file or folder previously mounted for reading with love.filesystem.mount. Function Synopsis success = love.filesystem.unmount( archive ) Arguments string archive The folder or zip file in the game's save directory which is currently mounted. Returns boolean success True if the archive was successfully unmounted, false otherwise. Examples Mount a zip file and then unmo

love.filesystem.setSymlinksEnabled

love.filesystem.setSymlinksEnabled Available since LÖVE 0.9.2 This function is not supported in earlier versions. Sets whether love.filesystem follows symbolic links. It is enabled by default in version 0.10.0 and newer, and disabled by default in 0.9.2. Function Synopsis love.filesystem.setSymlinksEnabled( enable ) Arguments boolean enable Whether love.filesystem should follow symbolic links. Returns Nothing. See Also love.filesystem love.filesystem.areSymlinksEnabled love.filesy

love.filesystem.setSource

love.filesystem.setSource Sets the source of the game, where the code is present. This function can only be called once, and is normally automatically done by LÖVE. Function Synopsis love.filesystem.setSource( path ) Arguments string path Absolute path to the game's source folder. Returns Nothing. See Also love.filesystem