Difference between revisions of "love.font.newImageRasterizer"

m (lowercase dpiscale)
m (love.font.newImageRasterizer didn't exist in 0.9 as far as I can tell)
 
Line 1: Line 1:
{{newin|[[0.7.0]]|070|type=function}}
+
{{newin|[[0.10.0]]|100|type=function}}
 
Creates a new Image Rasterizer.
 
Creates a new Image Rasterizer.
  

Latest revision as of 22:42, 25 January 2023

Available since LÖVE 0.10.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