From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#16306: 24.3.50; font change creates blank column on Lucid Date: Thu, 02 Jan 2014 14:37:49 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <8361q51m42.fsf@gnu.org> <52C2AB99.6040503@gmx.at> <52C3045C.7030303@gmx.at> <52C3F773.1030804@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1388641100 3372 80.91.229.3 (2 Jan 2014 05:38:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2014 05:38:20 +0000 (UTC) Cc: 16306@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 02 06:38:25 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 1Vyaz7-0002yi-BU for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jan 2014 06:38:21 +0100 Original-Received: from localhost ([::1]:43449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vyaz6-0005Ng-UM for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jan 2014 00:38:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vyayv-0005I6-RN for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2014 00:38:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vyayp-0004lM-J3 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2014 00:38:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vyayp-0004lI-FK for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2014 00:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vyayo-0005Gv-T4 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2014 00:38:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2014 05:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16306 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16306-submit@debbugs.gnu.org id=B16306.138864107920255 (code B ref 16306); Thu, 02 Jan 2014 05:38:02 +0000 Original-Received: (at 16306) by debbugs.gnu.org; 2 Jan 2014 05:37:59 +0000 Original-Received: from localhost ([127.0.0.1]:57122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vyayk-0005Gc-Jt for submit@debbugs.gnu.org; Thu, 02 Jan 2014 00:37:59 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:59404) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vyayg-0005GQ-6d for 16306@debbugs.gnu.org; Thu, 02 Jan 2014 00:37:57 -0500 Original-Received: from fermat.math.s.chiba-u.ac.jp (fermat [133.82.132.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 1173BC055D; Thu, 2 Jan 2014 14:37:50 +0900 (JST) In-Reply-To: <52C3F773.1030804@gmx.at> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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:82823 Archived-At: >>>>> On Wed, 01 Jan 2014 12:09:39 +0100, martin rudalics said: >> On my system, (640 16 16 2) before and (1120 28 16 2) after the >> font change. > 28 for the fringe width doesn't look right, this should be 30 since > a character is 15 pixels wide with the new font. So there could be > a bug in compute_fringe_widths, a function I never touched. But > this still would not explain a difference of four pixels. There is actually nothing wrong with the calculation of the fringe width, because the character width for the new font (Courier-18) is 14 on my side (14 * 80 = 1120). > Could you try starting with GDB in x_new_font and tell me which > value of "width" is passed to x_set_window_size_1 and how the latter > calculates "pixelwidth" which it passes to XResizeWindow? The value of "width" is 1120 as of the entry to x_set_window_size_1, and the value of "pixelwidth" is 1166 at the call to XResizeWindow. It is the window manager "quartz-wm" that reduces the width from 1166 to 1162, probably because it respects the size hint that was set in update_wm_hints (in widget.c). There, the value of base_width/height is calculated using the width/height of the frame *before* resizing. > And please also try the following patch (as mentioned earlier I > never understood that calculation and what the value "14" is > supposed to accomplish). For me it doesn't change anything - maybe > it does for you. It doesn't change the behavior for me, either. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp