Difference between revisions of "Font:hasGlyphs"

(Created page)
 
m (moved Font:hasGlyph to Font:hasGlyphs: Renamed)
(No difference)

Revision as of 00:48, 29 October 2013

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

Gets whether the font can render a particular character.

Function

Synopsis

hasglyph = Font:hasGlyph( character )

Arguments

string character
A unicode character.

Returns

boolean hasglyph
Whether the font can render the glyph represented by the character.

Function

Synopsis

hasglyph = Font:hasGlyph( codepoint )

Arguments

number codepoint
A unicode codepoint number.

Returns

boolean hasglyph
Whether the font can render the glyph represented by the codepoint number.

See Also

Other Languages