# HG changeset patch # User Gerd Moellmann # Date 954503578 0 # Node ID 17fb2089c22218d4e1a225fed24071d31e3d67f2 # Parent efd5a62ccce9c0b7719ee60f8304b187b1a5431b (x_produce_glyphs): When displaying unibyte text or ASCII, handle case that per-char metric is NULL. diff -r efd5a62ccce9 -r 17fb2089c222 src/xterm.c --- a/src/xterm.c Fri Mar 31 11:29:51 2000 +0000 +++ b/src/xterm.c Fri Mar 31 11:52:58 2000 +0000 @@ -1823,9 +1823,20 @@ pcm = x_per_char_metric (font, &char2b); it->ascent = font->ascent + boff; it->descent = font->descent - boff; - it->phys_ascent = pcm->ascent + boff; - it->phys_descent = pcm->descent - boff; - it->pixel_width = pcm->width; + + if (pcm) + { + it->phys_ascent = pcm->ascent + boff; + it->phys_descent = pcm->descent - boff; + it->pixel_width = pcm->width; + } + else + { + it->glyph_not_available_p = 1; + it->phys_ascent = font->ascent + boff; + it->phys_descent = font->descent - boff; + it->pixel_width = FONT_WIDTH (font); + } /* If this is a space inside a region of text with `space-width' property, change its width. */