We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dae818 commit 4a56cdaCopy full SHA for 4a56cda
src/ft2font.cpp
@@ -2,6 +2,8 @@
2
3
#define NO_IMPORT_ARRAY
4
5
+#include <string>
6
+
7
#include "ft2font.h"
8
#include "mplutils.h"
9
@@ -649,8 +651,7 @@ void FT2Font::set_text(
649
651
}
650
652
error = FT_Load_Glyph(face, glyph_index, flags);
653
if (error) {
- std::cerr << "\tcould not load glyph for " << thischar << std::endl;
- continue;
654
+ throw "could not load glyph";
655
656
// ignore errors, jump to next glyph
657
@@ -660,8 +661,7 @@ void FT2Font::set_text(
660
661
error = FT_Get_Glyph(face->glyph, &thisGlyph);
662
663
- std::cerr << "\tcould not get glyph for " << thischar << std::endl;
664
+ throw "could not get glyph";
665
666
667
0 commit comments