Difference between revisions of "love.font.newGlyphData"
Danielmario2 (talk | contribs) (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> =…') |
Danielmario2 (talk | contribs) m (Source code formatting.) |
||
Line 4: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | 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| | + | {{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.