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:
parent
ae9b263ae2
commit
c8c8ff66e9
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue