Skip to content

Commit

Permalink
BUGFIX : print a more verbose error when crashing with pangofont prob…
Browse files Browse the repository at this point in the history
…lem.

It's not a fix now, but at least, problem has been pinpointed.
  • Loading branch information
mans17 committed Mar 31, 2020
1 parent a8a6d7c commit 507ae37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TextWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "UserSettings.h"

#include <map>
#include <iostream>
#include <fontconfig/fontconfig.h>

using namespace std;
Expand Down Expand Up @@ -77,6 +78,7 @@ TextWriter::TextWriter(int in_x, int in_y, Renderer &in_renderer,
if (!ret) {
delete font_desc;
glDeleteLists(list_start, 128);
fprintf(stderr, "FATAL: An error ocurred while trying to use (any) pango font. (FIXME : we're working on it)\n");
throw LinthesiaError("An error ocurred while trying to use pango font");
}

Expand Down

0 comments on commit 507ae37

Please sign in to comment.