Font:hasGlyphs

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

Gets whether the Font can render a character or string.

Function

Synopsis

hasglyphs = Font:hasGlyphs( text )

Arguments

string text
A UTF-8 encoded unicode string.

Returns

boolean hasglyph
Whether the font can render all the UTF-8 characters in the string.

Function

Synopsis

hasglyphs = Font:hasGlyphs( character1, character2, ... )

Arguments

string character1
A unicode character.
string character2
Another unicode character.

Returns

boolean hasglyph
Whether the font can render all the glyphs represented by the characters.

Function

Synopsis

hasglyphs = Font:hasGlyphs( codepoint1, codepoint2, ... )

Arguments

number codepoint1
A unicode codepoint number.
number codepoint2
Another unicode codepoint number.

Returns

boolean hasglyph
Whether the font can render all the glyphs represented by the codepoint numbers.

See Also

Other Languages

Personal tools