# HG changeset patch # User Kenichi Handa # Date 1171427683 0 # Node ID ab537f768db2054166c2b490f0e2f1385143bd89 # Parent e557d0f1b7b17860a0a1d9baaced7ab6aafac2d2 (x_produce_glyphs): When a font is not found, make the empty box occupy at least one column width. diff -r e557d0f1b7b1 -r ab537f768db2 src/xdisp.c --- a/src/xdisp.c Wed Feb 14 01:31:09 2007 +0000 +++ b/src/xdisp.c Wed Feb 14 04:34:43 2007 +0000 @@ -20853,9 +20853,15 @@ if (font_not_found_p || !pcm) { + int char_width = CHAR_WIDTH (it->char_to_display); + + if (char_width == 0) + /* This is a non spacing character. But, as we are + going to display an empty box, the box must occupy + at least one column. */ + char_width = 1; it->glyph_not_available_p = 1; - it->pixel_width = (FRAME_COLUMN_WIDTH (it->f) - * CHAR_WIDTH (it->char_to_display)); + it->pixel_width = FRAME_COLUMN_WIDTH (it->f) * char_width; it->phys_ascent = FONT_BASE (font) + boff; it->phys_descent = FONT_DESCENT (font) - boff; }