1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-15 11:21:19 -07:00

(x_draw_glyph_string) [USE_FONT_BACKEND]: Check

s->face->font on determining underline position.
This commit is contained in:
Kenichi Handa 2006-06-23 05:07:12 +00:00
parent ae9b263ae2
commit c8c8ff66e9

View file

@ -2866,8 +2866,13 @@ x_draw_glyph_string (s)
#ifdef USE_FONT_BACKEND
if (enable_font_backend)
/* In the future, we must use information of font. */
y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
{
if (s->face->font)
/* In the future, we must use information of font. */
y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
else
y = s->y + s->height - h;
}
else
#endif
if (x_use_underline_position_properties