Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Oct 17, 2014
1 parent 8dae818 commit 4a56cda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ft2font.cpp
Expand Up @@ -2,6 +2,8 @@

#define NO_IMPORT_ARRAY

#include <string>

#include "ft2font.h"
#include "mplutils.h"

Expand Down Expand Up @@ -649,8 +651,7 @@ void FT2Font::set_text(
}
error = FT_Load_Glyph(face, glyph_index, flags);
if (error) {
std::cerr << "\tcould not load glyph for " << thischar << std::endl;
continue;
throw "could not load glyph";
}
// ignore errors, jump to next glyph

Expand All @@ -660,8 +661,7 @@ void FT2Font::set_text(
error = FT_Get_Glyph(face->glyph, &thisGlyph);

if (error) {
std::cerr << "\tcould not get glyph for " << thischar << std::endl;
continue;
throw "could not get glyph";
}
// ignore errors, jump to next glyph

Expand Down

0 comments on commit 4a56cda

Please sign in to comment.