]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/ftcrfont.c (ftcrfont_open): Skip zero glyph index.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 20 May 2019 23:49:07 +0000 (08:49 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 20 May 2019 23:49:07 +0000 (08:49 +0900)
src/ftcrfont.c

index 606db0b949b3cd808afedd27aff03f7966924026..2d5a7665578fe23cb2a15555be287adde2f30178 100644 (file)
@@ -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);