diff options
| author | Kenichi Handa | 2006-06-23 05:07:12 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-06-23 05:07:12 +0000 |
| commit | c8c8ff66e95b9b268c69d646fd4924caeae36141 (patch) | |
| tree | bc4a73952a8256ccdc9641e0686173b8fb8dc6f7 /src | |
| parent | ae9b263ae2a71b0321defe751676f2e6f07e2e65 (diff) | |
| download | emacs-c8c8ff66e95b9b268c69d646fd4924caeae36141.tar.gz emacs-c8c8ff66e95b9b268c69d646fd4924caeae36141.zip | |
(x_draw_glyph_string) [USE_FONT_BACKEND]: Check
s->face->font on determining underline position.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index df99f9cad0d..0c2014b184f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2866,8 +2866,13 @@ x_draw_glyph_string (s) | |||
| 2866 | 2866 | ||
| 2867 | #ifdef USE_FONT_BACKEND | 2867 | #ifdef USE_FONT_BACKEND |
| 2868 | if (enable_font_backend) | 2868 | if (enable_font_backend) |
| 2869 | /* In the future, we must use information of font. */ | 2869 | { |
| 2870 | y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2; | 2870 | if (s->face->font) |
| 2871 | /* In the future, we must use information of font. */ | ||
| 2872 | y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2; | ||
| 2873 | else | ||
| 2874 | y = s->y + s->height - h; | ||
| 2875 | } | ||
| 2871 | else | 2876 | else |
| 2872 | #endif | 2877 | #endif |
| 2873 | if (x_use_underline_position_properties | 2878 | if (x_use_underline_position_properties |