Font:hasGlyphs

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

doc_love
2017-03-21 15:44:20
Comments
Leave a Comment

Please login to continue.