use fallback font rather than crash
This commit is contained in:
parent
cde81ea4ea
commit
1a58d9fcd0
1 changed files with 2 additions and 1 deletions
|
@ -6048,8 +6048,9 @@ ScoreFont* ScoreFont::fontFactory(QString s)
|
|||
qDebug("ScoreFont <%s> not found in list", qPrintable(s));
|
||||
for (ScoreFont& sf : _scoreFonts)
|
||||
qDebug(" %s", qPrintable(sf.name()));
|
||||
qDebug("Using fallback font <%s> instead", qPrintable(_scoreFonts[FALLBACK_FONT].name()));
|
||||
return fallbackFont();
|
||||
}
|
||||
Q_ASSERT(f);
|
||||
|
||||
if (!f->face)
|
||||
f->load();
|
||||
|
|
Loading…
Reference in a new issue