Difference between revisions of "Font"

m (1 revision: Importing from potato (again).)
m (languages section)
Line 1: Line 1:
 
 
Can be used to draw text on screen.
 
Can be used to draw text on screen.
 
== Functions ==
 
== Functions ==
Line 12: Line 11:
 
[[Category:Types]]
 
[[Category:Types]]
 
{{#set:Description=Can be used to draw text on screen.}}
 
{{#set:Description=Can be used to draw text on screen.}}
 +
 +
== Other Languages ==
 +
{{i18n|Font}}

Revision as of 13:11, 17 November 2010

Can be used to draw text on screen.

Functions

Font:getAscentGets the ascent of the Font in pixels.
Font:getBaselineGets the baseline of the Font in pixels.
Font:getDPIScaleGets the DPI scale factor of the Font.
Font:getDescentGets the descent of the Font in pixels.
Font:getFilterGets the filter mode for a font.
Font:getHeightGets the height of the Font in pixels.
Font:getKerningGets the kerning between two characters in the Font.
Font:getLineHeightGets the line height.
Font:getWidthDetermines the width of the given text.
Font:getWrapGets formatting information for text, given a wrap limit.
Font:hasGlyphsGets whether the Font can render a character or string.
Font:setFallbacksSets other Fonts to use if this Font doesn't have a specific character.
Font:setFilterSets the filter mode for a font.
Font:setLineHeightSets the line height.

See Also


Other Languages