aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorKenichi Handa2000-12-04 01:20:30 +0000
committerKenichi Handa2000-12-04 01:20:30 +0000
commit1bdeec2e3cfaef16b3efeea508b8d36153a60949 (patch)
tree7650d92cc41ab0a8fa94372951bfebf12a1bd0ea /src/xterm.c
parente89648b4bfcc5b494d7637387a460321f67f40c2 (diff)
downloademacs-1bdeec2e3cfaef16b3efeea508b8d36153a60949.tar.gz
emacs-1bdeec2e3cfaef16b3efeea508b8d36153a60949.zip
(x_produce_glyphs): If a font for a component of
a composition is not found, use 1 pixel dot ascent and 0 dot descent value to avoid displaying terribly tall empty boxes.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 603a6f6e575..42537902c94 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2108,8 +2108,8 @@ x_produce_glyphs (it)
2108 cmp->font = (void *) font; 2108 cmp->font = (void *) font;
2109 2109
2110 /* Initialize the bounding box. */ 2110 /* Initialize the bounding box. */
2111 pcm = x_per_char_metric (font, &char2b); 2111 if (font_info
2112 if (pcm) 2112 && (pcm = x_per_char_metric (font, &char2b)))
2113 { 2113 {
2114 width = pcm->width; 2114 width = pcm->width;
2115 ascent = pcm->ascent; 2115 ascent = pcm->ascent;
@@ -2166,8 +2166,8 @@ x_produce_glyphs (it)
2166 boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; 2166 boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
2167 } 2167 }
2168 2168
2169 pcm = x_per_char_metric (font, &char2b); 2169 if (font_info
2170 if (pcm) 2170 && (pcm = x_per_char_metric (font, &char2b)))
2171 { 2171 {
2172 width = pcm->width; 2172 width = pcm->width;
2173 ascent = pcm->ascent; 2173 ascent = pcm->ascent;
@@ -2176,8 +2176,8 @@ x_produce_glyphs (it)
2176 else 2176 else
2177 { 2177 {
2178 width = FONT_WIDTH (font); 2178 width = FONT_WIDTH (font);
2179 ascent = font->ascent; 2179 ascent = 1;
2180 descent = font->descent; 2180 descent = 0;
2181 } 2181 }
2182 2182
2183 if (cmp->method != COMPOSITION_WITH_RULE_ALTCHARS) 2183 if (cmp->method != COMPOSITION_WITH_RULE_ALTCHARS)