Difference between revisions of "Font"
m |
m |
||
Line 2: | Line 2: | ||
== Constructors == | == Constructors == | ||
− | {{#ask: [[Category:Functions]] [[Constructs::Font]] [[ | + | {{#ask: [[Category:Functions]] [[Constructs::Font]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| default=None. | | default=None. | ||
Line 8: | Line 8: | ||
}} | }} | ||
== Functions == | == Functions == | ||
− | {{#ask: [[Category:Functions]] [[parent::Font||Object]] [[ | + | {{#ask: [[Category:Functions]] [[parent::Font||Object]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| ?Description | | ?Description |
Revision as of 22:57, 23 June 2012
Defines the shape of characters than can be drawn onto the screen.
Constructors
love.graphics.newFont | Creates a new Font from a TrueType Font or BMFont file. |
love.graphics.newImageFont | Creates a new Font by loading a specifically formatted image. |
Functions
Font:getAscent | Gets the ascent of the Font in pixels. |
Font:getBaseline | Gets the baseline of the Font in pixels. |
Font:getDPIScale | Gets the DPI scale factor of the Font. |
Font:getDescent | Gets the descent of the Font in pixels. |
Font:getFilter | Gets the filter mode for a font. |
Font:getHeight | Gets the height of the Font in pixels. |
Font:getKerning | Gets the kerning between two characters in the Font. |
Font:getLineHeight | Gets the line height. |
Font:getWidth | Determines the width of the given text. |
Font:getWrap | Gets formatting information for text, given a wrap limit. |
Font:hasGlyphs | Gets whether the Font can render a character or string. |
Font:setFallbacks | Sets other Fonts to use if this Font doesn't have a specific character. |
Font:setFilter | Sets the filter mode for a font. |
Font:setLineHeight | Sets the line height. |
Object:release | Immediately destroys the object's Lua reference. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info