Difference between revisions of "love.font.newRasterizer"

(See)
(Function)
Line 7: Line 7:
 
rasterizer = love.font.newRasterizer( imageData, glyphs )
 
rasterizer = love.font.newRasterizer( imageData, glyphs )
 
</source>
 
</source>
=== Arguments ===
+
=== See ===
{{param|ImageData|imageData|The image data containing the drawable pictures of font glyphs.}}
+
* [[love.font.newBMFontRasterizer]]
{{param|string|glyphs|The sequence of glyphs in the ImageData.}}
+
 
=== Returns ===
+
== Function? ==
{{param|Rasterizer|rasterizer|The rasterizer.}}
+
=== Synopsis ===
 +
<source lang="lua">
 +
rasterizer = love.font.newRasterizer( ... )
 +
</source>
 +
=== See ===
 +
* [[love.font.newBMFontRasterizer]]
  
 
== Function ==
 
== Function ==

Revision as of 13:27, 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 )

See

Function?

Synopsis

rasterizer = love.font.newRasterizer( ... )

See

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 )

See

See Also

Other Languages