Difference between revisions of "Font"

m
Line 7: Line 7:
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Font]] OR [[parent::Object]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::Font||Object]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 17:39, 25 March 2011

Can be used to draw text on screen.

Constructors

love.graphics.newFontCreates a new Font from a TrueType Font or BMFont file.
love.graphics.newImageFontCreates a new Font by loading a specifically formatted image.

Functions

Font:getHeightGets the height of the Font in pixels.
Font:getLineHeightGets the line height.
Font:getWidthDetermines the width of the given text.
Font:getWrapGets formatting information for text, given a wrap limit.
Font:setLineHeightSets the line height.
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