Difference between revisions of "Font"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Can be used to draw text on screen. | |
== Functions == | == Functions == | ||
{{#ask: [[Category:Functions]] [[parent::Font]] | {{#ask: [[Category:Functions]] [[parent::Font]] | ||
Line 11: | Line 11: | ||
* [[love.graphics.newImageFont]] | * [[love.graphics.newImageFont]] | ||
[[Category:Types]] | [[Category:Types]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Can be used to draw text on screen.}} |
Revision as of 16:17, 14 February 2010
Can be used to draw text on screen.
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. |