Difference between revisions of "Rasterizer"

m
Line 8: Line 8:
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Rasterizer]] OR [[parent::Object]]
+
{{#ask: [[Category:Functions]] [[parent::Rasterizer]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 +
{{#ask: [[Category:Functions]] [[parent::Object]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
== Supertypes ==
 +
[[Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.font]]
 
* [[parent::love.font]]

Revision as of 01:53, 13 February 2011

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 true-type 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

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.
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.

Supertypes

Object

See Also

Other Languages