1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

(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.
This commit is contained in:
Kenichi Handa 2000-12-04 01:20:30 +00:00
parent e89648b4bf
commit 1bdeec2e3c

View File

@ -2108,8 +2108,8 @@ x_produce_glyphs (it)
cmp->font = (void *) font;
/* Initialize the bounding box. */
pcm = x_per_char_metric (font, &char2b);
if (pcm)
if (font_info
&& (pcm = x_per_char_metric (font, &char2b)))
{
width = pcm->width;
ascent = pcm->ascent;
@ -2166,8 +2166,8 @@ x_produce_glyphs (it)
boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
}
pcm = x_per_char_metric (font, &char2b);
if (pcm)
if (font_info
&& (pcm = x_per_char_metric (font, &char2b)))
{
width = pcm->width;
ascent = pcm->ascent;
@ -2176,8 +2176,8 @@ x_produce_glyphs (it)
else
{
width = FONT_WIDTH (font);
ascent = font->ascent;
descent = font->descent;
ascent = 1;
descent = 0;
}
if (cmp->method != COMPOSITION_WITH_RULE_ALTCHARS)