Difference between revisions of "love.font.newRasterizer"

(Function)
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 ==
 
=== Synopsis ===
 
<source lang="lua">
 
rasterizer = love.font.newRasterizer( imageData, glyphs )
 
</source>
 
=== See ===
 
* [[love.font.newBMFontRasterizer]]
 
 
== Function? ==
 
=== Synopsis ===
 
<source lang="lua">
 
rasterizer = love.font.newRasterizer( ... )
 
</source>
 
=== See ===
 
* [[love.font.newBMFontRasterizer]]
 
  
 
== Function ==
 
== Function ==
Line 42: Line 26:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
rasterizer = love.font.newRasterizer( size )
+
rasterizer = love.font.newRasterizer( size, hinting_mode )
 
</source>
 
</source>
 
=== See ===
 
=== See ===
 
* [[love.font.newTrueTypeRasterizer]]
 
* [[love.font.newTrueTypeRasterizer]]
 +
 +
== Function ==
 +
=== Synopsis ===
 +
<source lang="lua">
 +
rasterizer = love.font.newRasterizer( imageData, glyphs )
 +
</source>
 +
=== See ===
 +
* [[love.font.newBMFontRasterizer]]
 +
 +
== Function? ==
 +
=== Synopsis ===
 +
<source lang="lua">
 +
rasterizer = love.font.newRasterizer( image1, image2, ... )
 +
</source>
 +
=== See ===
 +
* [[love.font.newBMFontRasterizer]]
  
 
== See Also ==
 
== See Also ==

Revision as of 13:31, 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( 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, hinting_mode )

See

Function

Synopsis

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

See

Function?

Synopsis

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

See

See Also

Other Languages