Rasterizer
EditA 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.newRasterizer | Create a new Rasterizer. |
Methods
Rasterizer:getAdvance | Get the advance of a glyph. |
Rasterizer:getAscent | Get the ascent of the font. |
Rasterizer:getBearing | Get the bearing of a glyph. |
Rasterizer:getBoundingBox | Get the bounding box of a glyph, or the font. |
Rasterizer:getCurves | Get the bezier curves defining a glyph. |
Rasterizer:getDescent | Get the descent of the font. |
Rasterizer:getDimensions | Get the dimensions of a glyph, or the font. |
Rasterizer:getFontSize | Get the size of the font. |
Rasterizer:getGlyphCount | Get the number of glyphs stored in the font file. |
Rasterizer:getHeight | Get the height of a glyph, or the font. |
Rasterizer:getKerning | Get the kerning between two glyphs. |
Rasterizer:getLeading | Get the leading of the font. |
Rasterizer:getWidth | Get the width of a glyph, or the font. |
Rasterizer:hasGlyphs | Get whether the Rasterizer can rasterize a set of glyphs. |
Rasterizer:newImage | Get an Image of a rasterized glyph. |