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, DPIScale )

Arguments

number size (12)
The font size.
Available since LÖVE 0.10.0
HintingMode hinting_mode ("normal")
True Type hinting mode.


Available since LÖVE 11.0
number DPIScale
The font DPI scale.

Returns

Rasterizer rasterizer
The rasterizer.

Function

Create a TrueTypeRasterizer with custom font.

Synopsis

rasterizer = love.font.newTrueTypeRasterizer( fileName, size, hinting_mode, DPIScale )

Arguments

string fileName
Path to font file.
number size (12)
The font size.
Available since LÖVE 0.10.0
HintingMode hinting_mode ("normal")
True Type hinting mode.


Available since LÖVE 11.0
number DPIScale
The font DPI scale.

Returns

Rasterizer rasterizer
The rasterizer.

Function

Create a TrueTypeRasterizer with custom font.

Synopsis

rasterizer = love.font.newTrueTypeRasterizer( fileData, size, hinting_mode, DPIScale )

Arguments

FileData fileData
File data containing font.
number size (12)
The font size.
Available since LÖVE 0.10.0
HintingMode hinting_mode ("normal")
True Type hinting mode.


Available since LÖVE 11.0
number DPIScale
The font DPI scale.

Returns

Rasterizer rasterizer
The rasterizer.

See Also


Other Languages