Difference between revisions of "love.font.newRasterizer"

m (See Also: Added love.font.newImageRasterizer)
Line 54: Line 54:
 
* [[love.font.newTrueTypeRasterizer]]
 
* [[love.font.newTrueTypeRasterizer]]
 
* [[love.font.newBMFontRasterizer]]
 
* [[love.font.newBMFontRasterizer]]
 +
* [[love.font.newImageRasterizer]]
 
* [[Constructs::Rasterizer]]
 
* [[Constructs::Rasterizer]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new Rasterizer.}}
 
{{#set:Description=Creates a new Rasterizer.}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.font.newRasterizer}}
 
{{i18n|love.font.newRasterizer}}

Revision as of 10:27, 22 April 2020

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.

Function

Synopsis

rasterizer = love.font.newRasterizer( size, hinting_mode )

See

Create a newBMFontRasterizer.

Function

Synopsis

rasterizer = love.font.newRasterizer( imageData, glyphs )

See

Function?

Synopsis

rasterizer = love.font.newRasterizer( image1, image2, ... )

See

See Also


Other Languages