Difference between revisions of "love.graphics.newFont"
(Linkified + added See Also) |
m (clarified size unit.) |
||
Line 7: | Line 7: | ||
=== Arguments === | === Arguments === | ||
{{param|string|filename|The filepath to the font file.}} | {{param|string|filename|The filepath to the font file.}} | ||
− | {{param|number|size (12)|The size of the font.}} | + | {{param|number|size (12)|The size of the font in pixels.}} |
=== Returns === | === Returns === | ||
{{param|Font|font|A Font object which can be used to draw text on screen.}} | {{param|Font|font|A Font object which can be used to draw text on screen.}} | ||
Line 17: | Line 17: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|size (12)|The size of the font.}} | + | {{param|number|size (12)|The size of the font in pixels.}} |
=== Returns === | === Returns === | ||
{{param|Font|font|A Font object which can be used to draw text on screen.}} | {{param|Font|font|A Font object which can be used to draw text on screen.}} |
Revision as of 01:52, 28 September 2010
Creates a new Font.
Contents
Function
Synopsis
font = love.graphics.newFont( filename, size )
Arguments
Returns
Font font
- A Font object which can be used to draw text on screen.
Function
This variant uses the default font (Vera Sans) with a custom size.
Synopsis
font = love.graphics.newFont( size )
Arguments
number size (12)
- The size of the font in pixels.
Returns
Font font
- A Font object which can be used to draw text on screen.