Mercurial > emacs
changeset 90616:68d59ef20174
(xftfont_text_extents): Fix calculation of descent
value.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 16 Oct 2006 07:26:53 +0000 |
parents | 93ead736a6ac |
children | 2763aeb751dc |
files | src/xftfont.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xftfont.c Mon Oct 16 07:26:19 2006 +0000 +++ b/src/xftfont.c Mon Oct 16 07:26:53 2006 +0000 @@ -464,7 +464,7 @@ metrics->rbearing = - extents.x + extents.width; metrics->width = extents.xOff; metrics->ascent = extents.y; - metrics->descent = extents.y - extents.height; + metrics->descent = extents.height - extents.y; } return extents.xOff; }