Skip to content

Commit 9c9ed86

Browse files
committed
even less spammy mupdf log
1 parent 6b691ce commit 9c9ed86

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/EngineMupdf.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,8 +1575,13 @@ static void fz_unlock_context_cs(void* user, int lock) {
15751575

15761576
static void fz_print_cb(void* user, const char* msg) {
15771577
static AtomicBool seenMsg;
1578-
if (str::Contains(msg, "generic error: couldn't find system font 'serif'")) {
1578+
if (str::Contains(msg, "generic error: couldn't find system font")) {
15791579
// this floods the log in some files
1580+
// it shows a font name like this:
1581+
// generic error: couldn't find system font 'AngsanaUPC-Bold'
1582+
// generic error: couldn't find system font 'AngsanaUPC'
1583+
// we only show the first missed font. Could use StrVec() to log every
1584+
// missing font
15801585
if (seenMsg.Get()) {
15811586
return;
15821587
}

0 commit comments

Comments
 (0)