Rasterizer

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

Usually you can just use Font objects.

Constructor

lovr.data.newRasterizerCreate a new Rasterizer.

Methods

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

See also