Font:hasGlyphs

Returns whether the Font has a set of glyphs. Any combination of strings and numbers (corresponding to character codes) can be specified. This function will return true if the Font is able to render all of the glyphs.

has = Font:hasGlyphs(...)

Arguments

NameTypeDescription
...*Strings or numbers to test.

Returns

NameTypeDescription
hasbooleanWhether the Font has the glyphs.

Notes

It is a good idea to use this function when you're rendering an unknown or user-supplied string to avoid utterly embarrassing crashes.

See also