GNU bug report logs -
#19194
24.4.50; `window-body-width' is not dynamic relative to font size changes
Previous Next
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
Message #74 received at 19194 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 28 Nov 2014 19:38:20 +0100
> From: martin rudalics <rudalics <at> gmx.at>
> CC: holtzermann17 <at> gmail.com, 19194 <at> debbugs.gnu.org
>
> >> That's what I'm trying to fathom out here all the time. So when
> >> calculating the actual height of a character as it will be displayed in
> >> a window I have to apply (in some order) the height attribute specified
> >> by (1) the font of the frame the window belongs to, (2) the font of the
> >> buffer shown in the window, and (3) the font of the default face.
> >
> > We always use the current default face's font for this. Otherwise,
> > you get to a problem that IMO is insoluble even in principle.
>
> But doesn't that imply that `frame-char-height' is just an artifact?
It's useful for dealing with measures in canonical character units.
> >> OK. Now how do I get the `default-font-width' from that?
> >
> > You need help from Emacs, because it knows everything about that
> > font's metrics. But we don't have an API for that for now.
>
> I see. Can you provide one?
Added to my todo.
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.