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: Mon, 21 Apr 2025 20:53:35 +0200
[Message part 1 (text/plain, inline)]
Hello,

The attached patch examines the actual glyph's outline with DirectWrite 
to compute exact values for ascent and descent and should solve the 
problem for any font. Specifically, Sans Serif Collection works well 
now, and everything on HELLO.txt looks good on my system.

This adds some overhead, but I didn't find it noticeable.  In case 
someone does, we could cache measurements as the GDI backend does.

When computing the bounding box for bezier curves, I just used minmax 
values for start/end and control points, instead of actually evaluating 
the curve.  This reduces the overhead and loses some precision, but I 
didn't see any real difference.






[0001-w32-change-the-way-text-is-measured-when-using-Direc.patch (text/plain, attachment)]

This bug report was last modified 84 days ago.

Previous Next


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