Difference between revisions of "love.graphics.getFont"
(→See Also) |
(Merge variant) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
== Function == | == Function == | ||
− | |||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 11: | Line 10: | ||
=== Returns === | === Returns === | ||
{{param|Font|font|The current Font. Automatically creates and sets the default font, if none is set yet.}} | {{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 == | ||
Line 28: | Line 18: | ||
* [[Font:getHeight]] | * [[Font:getHeight]] | ||
* [[Font:getWidth]] | * [[Font:getWidth]] | ||
+ | * [[love.graphics.print]] | ||
+ | |||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Gets the current Font object.}} | {{#set:Description=Gets the current Font object.}} |
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