Difference between revisions of "love.graphics.newFont"
Line 20: | Line 20: | ||
=== 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.}} | ||
− | |||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] |
Revision as of 10:18, 25 March 2011
Creates a new Font. Make sure not to call this in love.draw or love.update, as that would create a new font every frame; instead, call it once and save the font for future use, as in the examples below.
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.
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