Difference between revisions of "Rasterizer"

m
m
Line 13: Line 13:
 
}}
 
}}
 
== Supertypes ==
 
== Supertypes ==
[[Object]]
+
* [[parent::Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.font]]
 
* [[parent::love.font]]

Revision as of 00:23, 16 October 2012

Available since LÖVE 0.7.0
This type is not supported in earlier versions.

A Rasterizer handles font rendering, containing the font data (image or TrueType font) and drawable glyphs.

Constructors

love.font.newBMFontRasterizerCreates a new BMFont Rasterizer.
love.font.newImageRasterizerCreates a new Image Rasterizer.
love.font.newRasterizerCreates a new Rasterizer.
love.font.newTrueTypeRasterizerCreates a new TrueType Rasterizer.

Functions

Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
Rasterizer:getAdvanceGets font advance.
Rasterizer:getAscentGets ascent height.
Rasterizer:getDescentGets descent height.
Rasterizer:getGlyphCountGets number of glyphs in font.
Rasterizer:getGlyphDataGets glyph data of a specified glyph.
Rasterizer:getHeightGets font height.
Rasterizer:getLineHeightGets line height of a font.
Rasterizer:hasGlyphsChecks if font contains specified glyphs.

Supertypes

See Also

Other Languages