diff --git a/src/modules/graphics/opengl/Font.cpp b/src/modules/graphics/opengl/Font.cpp index 7b4386eb5..a850c7c55 100644 --- a/src/modules/graphics/opengl/Font.cpp +++ b/src/modules/graphics/opengl/Font.cpp @@ -174,7 +174,7 @@ namespace opengl dx += glyph->spacing; } } - catch (utf8::invalid_utf8 e) + catch (utf8::exception e) { glPopMatrix(); throw love::Exception(e.what()); @@ -210,7 +210,7 @@ namespace opengl temp += static_cast(g->spacing * mSpacing); } } - catch (utf8::invalid_utf8 e) + catch (utf8::exception e) { throw love::Exception(e.what()); }