Difference between revisions of "love.graphics.getFont"
(Merge variant) |
|||
(14 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Gets the current Font object. | |
== Function == | == Function == | ||
Line 9: | Line 9: | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|Font|font|The current Font, | + | {{param|Font|font|The current Font. Automatically creates and sets the default font, if none is set yet.}} |
+ | === Notes === | ||
+ | On version before 0.9.0, nil is returned if there are no fonts set beforehand. | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
+ | * [[love.graphics.setFont]] | ||
+ | * [[Font:getHeight]] | ||
+ | * [[Font:getWidth]] | ||
+ | * [[love.graphics.print]] | ||
+ | |||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Gets the current Font object.}} |
+ | {{#set:Since=090}} | ||
+ | {{#set:PrettySince=0.9.0}} | ||
+ | {{#set:Sub-Category=State}} | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|love.graphics.getFont}} |
Latest revision as of 02:54, 21 October 2022
Gets the current Font object.
Function
Synopsis
font = love.graphics.getFont( )
Arguments
None.
Returns
Font font
- The current Font. Automatically creates and sets the default font, if none is set yet.
Notes
On version before 0.9.0, nil is returned if there are no fonts set beforehand.
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