From a2fdea1a98ec5365f88a9bdd48e9b348a294d873 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 27 Oct 2017 13:06:41 +0530 Subject: [PATCH] ... --- kitty/freetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/freetype.c b/kitty/freetype.c index 94bfa1fcc..2c434f53c 100644 --- a/kitty/freetype.c +++ b/kitty/freetype.c @@ -354,7 +354,7 @@ draw_complex_glyph(Face *self, PyObject *args) { BitmapPoint src, dest; for (unsigned i = 0; i < sd.length; i++) { if (sd.info[i].codepoint == 0) continue; - _load_char(self, sd.info[i].codepoint); + if (!_load_char(self, sd.info[i].codepoint)) { free(g.buf); return NULL; } if (i == 0) { g.metrics = self->face->glyph->metrics; } x += (float)sd.positions[i].x_offset / 64.0; y -= (float)sd.positions[i].y_offset / 64.0;