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> =…')
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{newin|[[0.7.0]]|type=function}}
+
{{newin|[[0.7.0]]|070|type=function}}
 
Creates a new GlyphData.
 
Creates a new GlyphData.
 
== Function ==
 
== Function ==
 
=== 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]]
 +
* [[Constructs::GlyphData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new GlyphData.}}
 
{{#set:Description=Creates a new GlyphData.}}
 +
== Other Languages ==
 +
{{i18n|love.font.newGlyphData}}

Latest revision as of 09:47, 25 March 2011

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

Other Languages