Rasterizer:newImage
EditReturns an Image containing a rasterized glyph.
image = Rasterizer:newImage(glyph, spread, padding)Arguments
| Name | Type | Default | Description |
| glyph | string | number | A character or codepoint to rasterize. | |
| spread | number | 4.0 | The width of the distance field, for signed distance field rasterization. |
| padding | number | spread / 2 | The number of pixels of padding to add at the edges of the image. |
Returns
| Name | Type | Description |
| image | Image |
The glyph image. It will be in the rgba32f format.
|