From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22780: 25.1.50; wrong average width picked for bold face for 7x13 X11 font Date: Wed, 14 Sep 2016 19:49:31 +0300 Message-ID: <838tuu8m04.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1473873038 27928 195.159.176.226 (14 Sep 2016 17:10:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2016 17:10:38 +0000 (UTC) Cc: 22780@debbugs.gnu.org, alex@khesin.com To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 14 19:10:33 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkDhY-0005ry-5q for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 19:10:24 +0200 Original-Received: from localhost ([::1]:57542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkDhW-0004FW-5J for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 13:10:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkDNv-0004gu-Kg for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 12:50:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkDNq-00009R-HP for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 12:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkDNq-00009N-Dt for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkDNq-0001G3-5s for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 12:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2016 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22780-submit@debbugs.gnu.org id=B22780.14738717794799 (code B ref 22780); Wed, 14 Sep 2016 16:50:02 +0000 Original-Received: (at 22780) by debbugs.gnu.org; 14 Sep 2016 16:49:39 +0000 Original-Received: from localhost ([127.0.0.1]:59709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkDNT-0001FL-LS for submit@debbugs.gnu.org; Wed, 14 Sep 2016 12:49:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkDNS-0001F7-0y for 22780@debbugs.gnu.org; Wed, 14 Sep 2016 12:49:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkDNI-0008I7-PG for 22780@debbugs.gnu.org; Wed, 14 Sep 2016 12:49:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkDNI-0008Hh-Lo; Wed, 14 Sep 2016 12:49:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3732 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkDNG-0007JT-7V; Wed, 14 Sep 2016 12:49:27 -0400 In-reply-to: (message from Philipp Stephani on Wed, 14 Sep 2016 14:15:47 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:123294 Archived-At: > From: Philipp Stephani > Date: Wed, 14 Sep 2016 14:15:47 +0000 > > Alex Khesin schrieb am Di., 23. Feb. 2016 um 08:20 Uhr: > > emacs 25 choses fonts with different average width for 7x13 font, making bold text take more horizontal > space. This is particularly a problem when using themes like https://github.com/bbatsov/zenburn-emacs > which use bold to hihglight matching parenthesis in show-paren-mode, causing characters to shift as > the cursor is moved from a parenthesis to a non-parenthesis character. > > Repro that demonstrates the problem in both 25 pretest 1 and current head (but is perfectly ok in emacs > 24): > > $ emacs -Q --eval '(progn (set-face-font '\''default "7x13") (print (face-font "default")) (print (face-font > "bold")))' > > shows > -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 > -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1 > > Notice the jump from 70 to 80 before the iso8859 component - that's the average width, and that's what > I believe is causing bold characters to render wider than non-bold ones. Both are 70 in emacs 24. > > This appears to be a regression from Emacs 24. Would be great if somebody who has knowledge about this > area could look into this. Alas, we don't have such experts on board. Moreover, I could be wrong, but I don't think font selection has seen any changes between Emacs 24 and 25. Perhaps the best way ahead is for someone who sees the problem to revert changes since Emacs 24.5 to xftfont.c, ftfont.c, and font.c one by one, and see which one causes the problem. There are only a few changes there that affect the code and font selection in particular. Sorry, but I have no better advice.