From 5950160584b944c4cf9bb99c1804bf3b11fccc29 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 21 May 2019 08:49:07 +0900 Subject: [PATCH] * src/ftcrfont.c (ftcrfont_open): Skip zero glyph index. --- src/ftcrfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftcrfont.c b/src/ftcrfont.c index 606db0b949b..2d5a7665578 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c @@ -190,7 +190,7 @@ ftcrfont_open (struct frame *f, Lisp_Object entity, int pixel_size) { if (glyphs != &stack_glyph) cairo_glyph_free (glyphs); - else + else if (stack_glyph.index) { int this_width = ftcrfont_glyph_extents (font, stack_glyph.index, NULL); -- 2.39.2