aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2007-02-14 04:34:43 +0000
committerKenichi Handa2007-02-14 04:34:43 +0000
commita2ac0bc74c776864cc005af8c414efb61fe5019c (patch)
tree8f2f47352ae930e618ae2b5e45783496e0154c49 /src
parent8381aeaa0614c2e98d738e0f7c90c2da641e6e33 (diff)
downloademacs-a2ac0bc74c776864cc005af8c414efb61fe5019c.tar.gz
emacs-a2ac0bc74c776864cc005af8c414efb61fe5019c.zip
(x_produce_glyphs): When a font is not found, make the
empty box occupy at least one column width.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 5a78dd48c10..cd4683a71b9 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20853,9 +20853,15 @@ x_produce_glyphs (it)
20853 20853
20854 if (font_not_found_p || !pcm) 20854 if (font_not_found_p || !pcm)
20855 { 20855 {
20856 int char_width = CHAR_WIDTH (it->char_to_display);
20857
20858 if (char_width == 0)
20859 /* This is a non spacing character. But, as we are
20860 going to display an empty box, the box must occupy
20861 at least one column. */
20862 char_width = 1;
20856 it->glyph_not_available_p = 1; 20863 it->glyph_not_available_p = 1;
20857 it->pixel_width = (FRAME_COLUMN_WIDTH (it->f) 20864 it->pixel_width = FRAME_COLUMN_WIDTH (it->f) * char_width;
20858 * CHAR_WIDTH (it->char_to_display));
20859 it->phys_ascent = FONT_BASE (font) + boff; 20865 it->phys_ascent = FONT_BASE (font) + boff;
20860 it->phys_descent = FONT_DESCENT (font) - boff; 20866 it->phys_descent = FONT_DESCENT (font) - boff;
20861 } 20867 }