Difference between revisions of "love.font.newRasterizer"

m
m (Source code formatting. Better imageData description.)
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
rasterizer = love.font.newRasterizer( imagedata, glyphs )
+
rasterizer = love.font.newRasterizer( imageData, glyphs )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|ImageData|imagedata|The image data to rasterize.}}
+
{{param|ImageData|imageData|The image data containing the drawable pictures of font glyphs.}}
 
{{param|string|glyphs|The sequence of glyphs in the imagedata.}}
 
{{param|string|glyphs|The sequence of glyphs in the imagedata.}}
 
=== Returns ===
 
=== Returns ===

Revision as of 13:50, 23 October 2010

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.

See Also