Difference between revisions of "Rasterizer:getGlyphData"

m (Some raw info about it (from love source code) because it seems not to be documented)
Line 1: Line 1:
 
{{newin|[[0.7.0]]|070|type=function}}
 
{{newin|[[0.7.0]]|070|type=function}}
TODO
+
Gets glyph data of a specified glyph
 +
== Function ==
 +
=== Synopsis ===
 +
<source lang="lua">
 +
glyphData = Rasterizer:getGlyphData( glyph )
 +
</source>
 +
=== Arguments ===
 +
{{param|string|glyph|Glyph}}
 +
=== Returns ===
 +
{{param|GlyphData|glyphData|Glyph data}}
 +
 
 +
== Function ==
 +
=== Synopsis ===
 +
<source lang="lua">
 +
glyphData = Rasterizer:getGlyphData( glyphNumber )
 +
</source>
 +
=== Arguments ===
 +
{{param|number|glyphNumber|Glyph number}}
 +
=== Returns ===
 +
{{param|GlyphData|glyphData|Glyph data}}
  
 
== See Also ==
 
== See Also ==
Line 6: Line 25:
 
* [[GlyphData]]
 
* [[GlyphData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=TODO}}
+
{{#set:Description=Gets glyph data of a specified glyph}}
  
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Rasterizer:getGlyphData}}
 
{{i18n|Rasterizer:getGlyphData}}

Revision as of 13:24, 16 April 2020

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

Gets glyph data of a specified glyph

Function

Synopsis

glyphData = Rasterizer:getGlyphData( glyph )

Arguments

string glyph
Glyph

Returns

GlyphData glyphData
Glyph data

Function

Synopsis

glyphData = Rasterizer:getGlyphData( glyphNumber )

Arguments

number glyphNumber
Glyph number

Returns

GlyphData glyphData
Glyph data

See Also


Other Languages