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.
Function
Create a TrueTypeRasterizer with the default font.
Synopsis
rasterizer = love.font.newRasterizer( size, hinting, dpiscale )
Arguments
number size (12)
- The font size.
-
HintingMode hinting ("normal")
Available since 0.10.0 - True Type hinting mode.
-
number dpiscale (love.window.getDPIScale())
Available since 11.0 - The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Create a TrueTypeRasterizer with custom font.
Synopsis
rasterizer = love.font.newRasterizer( fileName, size, hinting, dpiscale )
Arguments
-
HintingMode hinting ("normal")
Available since 0.10.0 - True Type hinting mode.
-
number dpiscale (love.window.getDPIScale())
Available since 11.0 - The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Create a TrueTypeRasterizer with custom font.
Synopsis
rasterizer = love.font.newRasterizer( fileData, size, hinting, dpiscale )
Arguments
-
HintingMode hinting ("normal")
Available since 0.10.0 - True Type hinting mode.
-
number dpiscale (love.window.getDPIScale())
Available since 11.0 - The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Creates a new BMFont Rasterizer.
Synopsis
rasterizer = love.font.newRasterizer( imageData, glyphs, dpiscale )
Arguments
ImageData imageData
- The image data containing the drawable pictures of font glyphs.
string glyphs
- The sequence of glyphs in the ImageData.
-
number dpiscale (1)
Available since 11.0 - DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Creates a new BMFont Rasterizer.
Synopsis
rasterizer = love.font.newRasterizer( fileName, glyphs, dpiscale )
Arguments
string fileName
- The path to file containing the drawable pictures of font glyphs.
string glyphs
- The sequence of glyphs in the ImageData.
-
number dpiscale (1)
Available since 11.0 - DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
See Also
- love.font
- love.font.newTrueTypeRasterizer
- love.font.newBMFontRasterizer
- love.font.newImageRasterizer
- Rasterizer
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.font.newRasterizer