Difference between revisions of "Rasterizer"

m
m
Line 1: Line 1:
 
{{newin|[[0.7.0]]|070|type=type}}
 
{{newin|[[0.7.0]]|070|type=type}}
A Rasterizer handles font rendering, containing the font data (image or true-type font) and drawable glyphs.
+
A Rasterizer handles font rendering, containing the font data (image or TrueType font) and drawable glyphs.
 
== Constructors ==
 
== Constructors ==
 
{{#ask: [[Category:Functions]] [[Constructs::Rasterizer]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[Constructs::Rasterizer]] [[Concept:Current]]

Revision as of 13:04, 3 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

Object

See Also

Other Languages