Font:hasGlyphs

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