Difference between revisions of "love.font.newGlyphData"

(Created page with '{{newin|0.7.0|type=function}} Creates a new GlyphData. == Function == === Synopsis === <source lang="lua"> glyphdata = love.font.newGlyphData( rasterizer, glyph ) </source> =…')
 
m (Source code formatting.)
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
glyphdata = love.font.newGlyphData( rasterizer, glyph )
+
glyphData = love.font.newGlyphData( rasterizer, glyph )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 10: Line 10:
 
{{param|number|glyph|The character code of the glyph.}}
 
{{param|number|glyph|The character code of the glyph.}}
 
=== Returns ===
 
=== Returns ===
{{param|GlyphData|glyphdata|The GlyphData.}}
+
{{param|GlyphData|glyphData|The GlyphData.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.font]]
 
* [[parent::love.font]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new GlyphData.}}
 
{{#set:Description=Creates a new GlyphData.}}

Revision as of 13:36, 23 October 2010

Available since LÖVE 0.7.0
This function is not supported in earlier versions.

Creates a new GlyphData.

Function

Synopsis

glyphData = love.font.newGlyphData( rasterizer, glyph )

Arguments

Rasterizer rasterizer
The Rasterizer containing the font.
number glyph
The character code of the glyph.

Returns

GlyphData glyphData
The GlyphData.

See Also