A Rasterizer is an object that parses a TTF file, decoding and rendering glyphs from it.

Usually you can just use Font objects.


lovr.data.newRasterizerCreate a new Rasterizer.


Rasterizer:getAdvanceGet the advance of the font.
Rasterizer:getAscentGet the ascent of the font.
Rasterizer:getDescentGet the descent of the font.
Rasterizer:getGlyphCountGet the number of glyphs stored in the font file.
Rasterizer:hasGlyphsGet whether the Rasterizer can rasterize a set of glyphs.
Rasterizer:getHeightGet the height of the font.
Rasterizer:getLineHeightGet the line height of the font.

See also