aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)