Difference between revisions of "love.font.newRasterizer"

m
Line 1: Line 1:
 
{{newin|[[0.7.0]]|070|type=function}}
 
{{newin|[[0.7.0]]|070|type=function}}
 
Creates a new Rasterizer.
 
Creates a new Rasterizer.
 +
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 11: Line 12:
 
=== Returns ===
 
=== Returns ===
 
{{param|Rasterizer|rasterizer|The rasterizer.}}
 
{{param|Rasterizer|rasterizer|The rasterizer.}}
 +
 +
== Function ==
 +
=== Synopsis ===
 +
<source lang="lua">
 +
rasterizer = love.font.newRasterizer( filename )
 +
</source>
 +
=== Arguments ===
 +
{{param|string|filename|The font file.}}
 +
=== Returns ===
 +
{{param|Rasterizer|rasterizer|The rasterizer.}}
 +
 +
== Function ==
 +
=== Synopsis ===
 +
<source lang="lua">
 +
rasterizer = love.font.newRasterizer( data )
 +
</source>
 +
=== Arguments ===
 +
{{param|FileData|data|The FileData of the font file.}}
 +
=== Returns ===
 +
{{param|Rasterizer|rasterizer|The rasterizer.}}
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::love.font]]
 
* [[parent::love.font]]

Revision as of 13:05, 6 February 2017

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

Rasterizer rasterizer
The 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.

See Also

Other Languages