Difference between revisions of "Rasterizer"

Line 8: Line 8:
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Rasterizer]] OR [[parent::Object]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::Rasterizer||Object]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 18: Line 18:
 
[[Category:Types]]
 
[[Category:Types]]
 
{{#set:Description=A Rasterizer represents font data and glyphs.}}
 
{{#set:Description=A Rasterizer represents font data and glyphs.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Rasterizer}}
 
{{i18n|Rasterizer}}

Revision as of 17:37, 25 March 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

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

Object

See Also


Other Languages