Difference between revisions of "love.graphics.getFont"

m
(Updated for 0.9.0)
Line 1: Line 1:
 
Gets the current Font object.
 
Gets the current Font object.
 +
 
== Function ==
 
== Function ==
 +
{{newin|[[0.9.0]]|090|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
font = love.graphics.getFont( )
 +
</source>
 +
=== Arguments ===
 +
None.
 +
=== Returns ===
 +
{{param|Font|font|The current Font. Automatically creates and sets the default font, if none is set yet.}}
 +
 +
== Function ==
 +
{{oldin|[[0.9.0]]|090|type=variant}}
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 9: Line 22:
 
=== Returns ===
 
=== Returns ===
 
{{param|Font|font|The current Font, or nil if none is set.}}
 
{{param|Font|font|The current Font, or nil if none is set.}}
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 03:18, 2 September 2013

Gets the current Font object.

Function

Available since LÖVE 0.9.0
This variant is not supported in earlier versions.

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.

Function

Removed in LÖVE 0.9.0
This variant is not supported in that and later versions.

Synopsis

font = love.graphics.getFont( )

Arguments

None.

Returns

Font font
The current Font, or nil if none is set.

See Also


Other Languages