From 716bcb6d1275c4cda117b681feb855b672d0af5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Mar 2024 14:08:03 +0530 Subject: [PATCH] ... --- kitty/fonts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fonts.c b/kitty/fonts.c index 92bce9f08..020033c35 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -504,7 +504,7 @@ load_fallback_font(FontGroup *fg, CPUCell *cell, bool bold, bool italic, bool em printf("U+%x ", codepoint_for_mark(cell->cc_idx[i])); } printf("is "); - PyObject_Print(af->face, stdout, 0); + if (af->face) PyObject_Print(af->face, stdout, 0); else printf(" (null)"); printf(" but it does not actually contain glyphs for that text\n"); } del_font(af);