diff options
| author | Gerd Moellmann | 2000-12-06 10:47:03 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-12-06 10:47:03 +0000 |
| commit | 9765b4a48777b98a338c900fe64838f2a03679ef (patch) | |
| tree | 67bc50650c167814649182e01c5891a51ebb51ec /src | |
| parent | 11753d04cb1e5d004829adadb855adc7125d5d93 (diff) | |
| download | emacs-9765b4a48777b98a338c900fe64838f2a03679ef.tar.gz emacs-9765b4a48777b98a338c900fe64838f2a03679ef.zip | |
(x_load_font): Don't use the font's max_bounds for
computing the height of the font. If max_bounds' ascent or
descent are greater than the font's ascent or descent, this means
glyphs overlap, which should be handled now by redisplay.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xterm.c | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a3d3a31d4c6..38b12414b86 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2000-12-06 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xterm.c (x_load_font): Don't use the font's max_bounds for | ||
| 4 | computing the height of the font. If max_bounds' ascent or | ||
| 5 | descent are greater than the font's ascent or descent, this means | ||
| 6 | glyphs overlap, which should be handled now by redisplay. | ||
| 7 | |||
| 1 | 2000-12-06 Miles Bader <miles@gnu.org> | 8 | 2000-12-06 Miles Bader <miles@gnu.org> |
| 2 | 9 | ||
| 3 | * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t', | 10 | * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t', |
diff --git a/src/xterm.c b/src/xterm.c index da53834e08f..f30ee0159fd 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -13213,13 +13213,6 @@ x_load_font (f, fontname, size) | |||
| 13213 | 13213 | ||
| 13214 | fontp->size = font->max_bounds.width; | 13214 | fontp->size = font->max_bounds.width; |
| 13215 | fontp->height = FONT_HEIGHT (font); | 13215 | fontp->height = FONT_HEIGHT (font); |
| 13216 | { | ||
| 13217 | /* For some font, ascent and descent in max_bounds field is | ||
| 13218 | larger than the above value. */ | ||
| 13219 | int max_height = font->max_bounds.ascent + font->max_bounds.descent; | ||
| 13220 | if (max_height > fontp->height) | ||
| 13221 | fontp->height = max_height; | ||
| 13222 | } | ||
| 13223 | 13216 | ||
| 13224 | if (NILP (font_names)) | 13217 | if (NILP (font_names)) |
| 13225 | { | 13218 | { |