Improve error message when glyph is not found;
@@ -60,7 +60,7 @@ bool lovrRasterizerHasGlyphs(Rasterizer* rasterizer, const char* str) {
void lovrRasterizerLoadGlyph(Rasterizer* rasterizer, uint32_t character, Glyph* glyph) {
int glyphIndex = stbtt_FindGlyphIndex(&rasterizer->font, character);
- lovrAssert(glyphIndex, "Error loading glyph");
+ lovrAssert(glyphIndex, "No font glyph found for character code %d, try using Rasterizer:hasGlyphs", character);
// Trace glyph outline
stbtt_vertex* vertices;
