From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19194: 24.4.50; `window-body-width' is not dynamic relative to font size changes Date: Sat, 20 Dec 2014 18:47:13 +0200 Message-ID: <83wq5mqne6.fsf@gnu.org> References: <87h9xm6plp.fsf@gmail.com> <5476F298.5000205@gmx.at> <87ppc8rk08.fsf@gmail.com> <54776EED.9090303@gmx.at> <83y4qwmq66.fsf@gnu.org> <54778275.1090007@gmx.at> <83tx1kml24.fsf@gnu.org> <54782441.3030600@gmx.at> <83h9xjn1zz.fsf@gnu.org> <5478C11C.6050207@gmx.at> <83r3vvsa0p.fsf@gnu.org> <54954B15.7040002@gmx.at> <87r3vuedxm.fsf@gmail.com> <54958C83.8010209@gmx.at> <834msqs3ap.fsf@gnu.org> <5495A466.7040802@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419094105 7180 80.91.229.3 (20 Dec 2014 16:48:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2014 16:48:25 +0000 (UTC) Cc: holtzermann17@gmail.com, 19194@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 17:48:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y2NCT-0003q6-Ai for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 17:48:17 +0100 Original-Received: from localhost ([::1]:35158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2NCS-0004Nt-Ms for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 11:48:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2NCJ-0004Ne-Si for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:48:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2NCE-0004bG-OA for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:48:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2NCE-0004b7-M2 for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y2NCE-0002pT-Aa for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Dec 2014 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19194-submit@debbugs.gnu.org id=B19194.141909404810828 (code B ref 19194); Sat, 20 Dec 2014 16:48:02 +0000 Original-Received: (at 19194) by debbugs.gnu.org; 20 Dec 2014 16:47:28 +0000 Original-Received: from localhost ([127.0.0.1]:53238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2NBf-0002oZ-Kj for submit@debbugs.gnu.org; Sat, 20 Dec 2014 11:47:27 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40469) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2NBd-0002oQ-9v for 19194@debbugs.gnu.org; Sat, 20 Dec 2014 11:47:26 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NGW008003VUWZ00@a-mtaout22.012.net.il> for 19194@debbugs.gnu.org; Sat, 20 Dec 2014 18:47:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGW0082D3YWKC50@a-mtaout22.012.net.il>; Sat, 20 Dec 2014 18:47:21 +0200 (IST) In-reply-to: <5495A466.7040802@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97621 Archived-At: > Date: Sat, 20 Dec 2014 17:31:34 +0100 > From: martin rudalics > CC: holtzermann17@gmail.com, 19194@debbugs.gnu.org > > > I actually don't really understand the question. What does "character > > width" mean when each character has a different width? Do you (Joe) > > mean you want to know the actual width of each and every character? > > The maximum character width. That's why he proposes to use the width of > an "M" for this. > > > If so, what for? > > Probably to know how many characters fit into a line. With a > proportional font. But for a proportional font, that question has no meaningful answer. Using the maximum width could yield a result that it a gross underestimation. I fail to see how this could be more useful than using the average width. > > In any case, if you do need the width of individual characters, take a > > look at font-get-glyphs (and font-at to get you the font for that). > > He wants the width of a default font "M" (where the default fount could > be proportional) filtered by the frame it appears on and the remapping > specified for the buffer the character appears in. Once you get the font used by a face on that frame and buffer, the font parameters are fixed.