GNU bug report logs - #77171
31.0.50; Some lines in etc/HELLO display with large height on MS-Windows

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Sat, 22 Mar 2025 10:37:01 UTC

Severity: normal

Tags: patch

Found in version 31.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Cecilio Pardo <cpardo <at> imayhem.com>
To: Eli Zaretskii <eliz <at> gnu.org>, 77171 <at> debbugs.gnu.org
Subject: bug#77171: 31.0.50; Some lines in etc/HELLO display with large height on MS-Windows
Date: Tue, 1 Apr 2025 10:47:11 +0200
[Message part 1 (text/plain, inline)]
On 22/03/2025 11:36, Eli Zaretskii wrote:

> Cecilio, could you please look into this?  I'm guessing that the code
> we now use to return the metrics of character glyphs somehow returns
> different results from what was used before, in this particular
> aspect. 

The attached patch fixes this by using the GDI measurement for the 
vertical size of text.

Doing the same with DirectWrite would be too expensive, and would imply 
using the "layout" parts of DirectWrite, to get the same results most of 
the time.

Horizontal extents is different, we need to keep using DirectWrite for that.

[0001-w32-fix-problem-with-font-vertical-measurement-for-d.patch (text/plain, attachment)]

This bug report was last modified 83 days ago.

Previous Next


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