Difference between revisions of "Font"

m
Line 1: Line 1:
Can be used to draw text on screen.
+
Defines the shape of characters than can be drawn onto the screen.
 +
 
 
== Constructors ==
 
== Constructors ==
 
{{#ask: [[Category:Functions]] [[Constructs::Font]] [[Since::<071]]
 
{{#ask: [[Category:Functions]] [[Constructs::Font]] [[Since::<071]]
Line 16: Line 17:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Types]]
 
[[Category:Types]]
{{#set:Description=Can be used to draw text on screen.}}
+
{{#set:Description=Defines the shape of characters than can be drawn onto the screen.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Font}}
 
{{i18n|Font}}

Revision as of 02:21, 4 February 2012

Defines the shape of characters than can be drawn onto the 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