GNU bug report logs - #20628
25.0.50; Incorrect line height for some fonts

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Fri, 22 May 2015 03:03:02 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #233 received at 20628 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: wl <at> gnu.org, clement.pitclaudel <at> live.com, ohwoeowho <at> gmail.com
Cc: 20628 <at> debbugs.gnu.org
Subject: Re: bug#20628: 25.0.50; Incorrect line height for some fonts
Date: Sun, 24 May 2015 13:29:06 +0300
> Date: Sun, 24 May 2015 13:06:57 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 20628 <at> debbugs.gnu.org
> 
> The relevant place in the display engine where these factors are taken
> into consideration is around line 26388 in xdisp.c, which is part of
> the function x_produce_glyphs.  There you will find a call to the
> function get_per_char_metric, which in turn calls the font driver's
> text_extents method.  The metrics returned by get_per_char_metric
> include ascent and descent, but I think they are not in pixel units.
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This part seems to be incorrect, as I see elsewhere in the code that
phys_ascent and ascent are freely added and subtracted, and the same
for phys_descent and descent.  IOW, the per-character ascent/descent
values are returned in pixel units.

Sorry for any confusion I caused.




This bug report was last modified 9 years and 356 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.