Rasterizer:newImage

Edit

Returns an Image containing a rasterized glyph.

image = Rasterizer:newImage(glyph, spread, padding)

Arguments

NameTypeDefaultDescription
glyphstring | number A character or codepoint to rasterize.
spreadnumber4.0 The width of the distance field, for signed distance field rasterization.
paddingnumberspread / 2 The number of pixels of padding to add at the edges of the image.

Returns

NameTypeDescription
imageImage The glyph image. It will be in the rgba32f format.

See also