GNU bug report logs - #78621
Pixelwise display specified spaces less precise than min-width

Previous Next

Package: emacs;

Reported by: Ship Mints <shipmints <at> gmail.com>

Date: Wed, 28 May 2025 19:46:01 UTC

Severity: normal

Tags: notabug

Done: Ship Mints <shipmints <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Jim Porter <jporterbugs <at> gmail.com>
To: Ship Mints <shipmints <at> gmail.com>
Cc: 78621 <at> debbugs.gnu.org
Subject: Re: bug#78621: Pixelwise display specified spaces less precise than
 min-width
Date: Wed, 28 May 2025 15:12:14 -0700
[Message part 1 (text/plain, inline)]
On 5/28/2025 1:40 PM, Ship Mints wrote:
> But... Did you run the repro in question and it worked for you, or are 
> you saying that this worked for your case?

I edited your repro to use that call (see the diff below), and it all 
looks good to me, as shown in the attached screenshots.

--- before.el   2025-05-28 14:58:33.646686778 -0700
+++ after.el  2025-05-28 14:58:42.551136757 -0700
@@ -12,8 +12,7 @@
     (let ((pad-to-width 150))
       (cl-labels
           ((string-pixel-width-scaled (str)
-             (ceiling (* (string-pixel-width str)
-                         (/ (float (default-font-width)) 
(frame-char-width)))))
+             (string-pixel-width str (current-buffer)))
            (insert-pad-to-width (str face)
              (let* ((s (propertize str 'face face))
                     (pad-width (- pad-to-width
[before.png (image/png, attachment)]
[after.png (image/png, attachment)]

This bug report was last modified 50 days ago.

Previous Next


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