Difference between revisions of "love.graphics.newImageFont"

m (1 revision: Importing from potato (again).)
(add link to image font format explanation (which I will now write))
Line 1: Line 1:
 
+
Creates a new font by loading a [[ImageFontFormat |specifically formatted]] image.
Creates a new font by loading a specifically formatted image.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 23: Line 22:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 +
* [[ImageFontFormat | Image Font Format]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new font by loading a specifically formatted image.}}
 
{{#set:Description=Creates a new font by loading a specifically formatted image.}}

Revision as of 05:35, 5 September 2010

Creates a new font by loading a specifically formatted image.

Function

Synopsis

font = love.graphics.newImageFont( Image, glyphs )

Arguments

Image Image
The Image object to create the font from.
string glyphs
A string of the characters in the image in order from left to right.

Returns

Font font
A Font object which can be used to draw text on screen.

Function

Synopsis

font = love.graphics.newImageFont( filename, glyphs )

Arguments

string filename
The filepath to the image file.
string glyphs
A string of the characters in the image in order from left to right.

Returns

Font font
A Font object which can be used to draw text on screen.

See Also