Font

A Font is an object created from a TTF file. It can be used to render text with lovr.graphics.print.

Constructor

lovr.graphics.newFontCreate a new Font.

Methods

Font:getBaselineGet the baseline of the Font.
Font:getRasterizerGet the underlying Rasterizer.
Font:getHeightGet the height of a line of text.
Font:getDescentGet the descent of the Font.
Font:hasGlyphsCheck if a Font has a set of glyphs.
Font:getWidthMeasure a line of text.
Font:getLineHeightGet the line height of the Font.
Font:setLineHeightSet the line height of the Font.
Font:getPixelDensityGet the pixel density of the Font.
Font:setPixelDensitySet the pixel density of the Font.
Font:getAscentGet the ascent of the Font.

See also