Difference between revisions of "love.font.newImageRasterizer"

m (DPIScale since 11.0)
m (lowercase dpiscale)
Line 6: Line 6:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
rasterizer = love.font.newImageRasterizer( imageData, glyphs, extraSpacing, DPIScale )
+
rasterizer = love.font.newImageRasterizer( imageData, glyphs, extraSpacing, dpiscale )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 13: Line 13:
 
{{param|number|extraSpacing (0)|Font extra spacing.}}
 
{{param|number|extraSpacing (0)|Font extra spacing.}}
 
{{New feature|11.0|
 
{{New feature|11.0|
{{param|number|DPIScale (1)|Font DPI scale.}}
+
{{param|number|dpiscale (1)|Font DPI scale.}}
 
}}
 
}}
 
=== Returns ===
 
=== Returns ===

Revision as of 08:36, 31 July 2020

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

Creates a new Image Rasterizer.

Function

Create an ImageRasterizer from the image data.

Synopsis

rasterizer = love.font.newImageRasterizer( imageData, glyphs, extraSpacing, dpiscale )

Arguments

ImageData imageData
Font image data.
string glyphs
String containing font glyphs.
number extraSpacing (0)
Font extra spacing.
Available since LÖVE 11.0
number dpiscale (1)
Font DPI scale.

Returns

Rasterizer rasterizer
The rasterizer.

See Also

Other Languages