Difference between revisions of "love.font.newTrueTypeRasterizer"

Line 6: Line 6:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
rasterizer = love.font.newRasterizer( size )
+
rasterizer = love.font.newRasterizer( size, hinting_mode )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|number|size|The font size.}}
 
{{param|number|size|The font size.}}
 +
{{param|HintingMode|hinting_mode|True Type hinting mode.}}
 
=== Returns ===
 
=== Returns ===
 
{{param|TrueTypeRasterizer|rasterizer|The rasterizer.}}
 
{{param|TrueTypeRasterizer|rasterizer|The rasterizer.}}

Revision as of 13:35, 6 February 2017

Available since LÖVE 0.7.0
This function is not supported in earlier versions.

Creates a new Rasterizer.

Function

Create a TrueTypeRasterizer with the default font.

Synopsis

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

Arguments

number size
The font size.
HintingMode hinting_mode
True Type hinting mode.

Returns

TrueTypeRasterizer rasterizer
The rasterizer.

See Also

Other Languages