GNU bug report logs - #19194
24.4.50; `window-body-width' is not dynamic relative to font size changes

Previous Next

Package: emacs;

Reported by: Joe Corneli <holtzermann17 <at> gmail.com>

Date: Wed, 26 Nov 2014 13:48:01 UTC

Severity: normal

Tags: notabug

Merged with 20022

Found in versions 24.4.50, 24.4.90

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Joe Corneli <holtzermann17 <at> gmail.com>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 19194 <at> debbugs.gnu.org
Subject: bug#19194: 24.4.50; `window-body-width' is not dynamic relative to font size changes
Date: Wed, 26 Nov 2014 16:34:21 +0000
On Wed, Nov 26 2014, Eli Zaretskii wrote:

> One simple technique is to measure everything in pixels, but I don't
> know at this point whether this will solve your use case.

That would probably do it for me, yes.

On Wed, Nov 26 2014, Stefan Monnier wrote:

>> function to return the "actual" number of columns.
>
> How do you define "actual number of columns" in the presence of
> proportional fonts, images, and text of variable size?

I hadn't considered anything but fixed width fonts with uniform size --
but, for instance, the width could be reported in em-length units.

If people switch fonts mid-line, that's clearly a pain - but "ems" could
be defined relative to point-size-at-point, and would accordingly return
an accurate *length*.  In the general not the same as the "actual number
of columns" - but possibly still of use.




This bug report was last modified 3 years and 105 days ago.

Previous Next


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