Returns whether the Rasterizer can rasterize a set of glyphs.
hasGlyphs = Rasterizer:hasGlyphs(...)
Arguments
| Name | Type | Description |
| ... | string | number |
Strings (characters) or numbers (codepoints) to check for.
|
Returns
| Name | Type | Description |
| hasGlyphs | boolean |
true if the Rasterizer can rasterize all of the supplied characters, false otherwise.
|
Example
rasterizer = lovr.data.newRasterizer()
function lovr.draw(pass)
if rasterizer:hasGlyphs('Ö') then
pass:text('LÖVR!!!', 0, 2, -3)
else
pass:text('>:(', 0, 2, -3)
end
end
See also