From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39082: Inconsolata v3.000 has too wide spacing Date: Sun, 12 Jan 2020 20:44:08 +0200 Message-ID: <838smc7bwn.fsf@gnu.org> References: <83eew47kix.fsf@gnu.org> <83d0bo7gwn.fsf@gnu.org> <83a76s7eaf.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128194"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 39082@debbugs.gnu.org To: Andrea Greselin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 12 19:46:21 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqiEd-000Ozu-UR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 19:45:16 +0100 Original-Received: from localhost ([::1]:40884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqiEc-0006kq-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 13:45:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33754) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqiES-0006kY-Og for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 13:45:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqiEQ-00082m-Pe for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 13:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqiEQ-00080j-Mb for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 13:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqiEQ-0004XK-Ft for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 13:45: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: Sun, 12 Jan 2020 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39082 X-GNU-PR-Package: emacs Original-Received: via spool by 39082-submit@debbugs.gnu.org id=B39082.157885465117358 (code B ref 39082); Sun, 12 Jan 2020 18:45:02 +0000 Original-Received: (at 39082) by debbugs.gnu.org; 12 Jan 2020 18:44:11 +0000 Original-Received: from localhost ([127.0.0.1]:57957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqiDa-0004Vu-VK for submit@debbugs.gnu.org; Sun, 12 Jan 2020 13:44:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqiDY-0004Vg-V3 for 39082@debbugs.gnu.org; Sun, 12 Jan 2020 13:44:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqiDT-0004D6-Nh; Sun, 12 Jan 2020 13:44:03 -0500 Original-Received: from [176.228.60.248] (port=4706 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iqiDT-0002xv-4p; Sun, 12 Jan 2020 13:44:03 -0500 In-reply-to: (message from Andrea Greselin on Sun, 12 Jan 2020 19:17:38 +0100) 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174517 Archived-At: > From: Andrea Greselin > Date: Sun, 12 Jan 2020 19:17:38 +0100 > Cc: 39082@debbugs.gnu.org > > > M-: (font-get-glyphs (font-at 1) 1 2) RET > > Having launched Emacs with `emacs -Q -fn Inconsolata-12` I get > > [[0 0 59 541 29 2 7 9 4 nil]] > > > It would be also interesting to compare this with a font that is > > displayed "normally". > > With `emacs -Q -fn "DejaVu Sans Mono-12"` (which displays correctly) > the output is > > [[0 0 59 30 11 3 8 10 3 nil]] > > I've run both test on a scratch buffer showing its message, so they > should be referring to the character ";". `(font-get-glyphs (font-at > 1) 100 101)` returns > > [[0 0 116 415 29 0 10 12 0 nil]] > > with Inconsolata and > > [[0 0 116 87 11 0 11 14 0 nil]] > > with DejaVu. > > The fourth values look rather off, and the fifth too. The 4th value is unimportant: it's the font's glyph index for that character's glyph. The 5th element is the problem: it's what we use for the glyph. 29 is way too large, about 2.5 times too large. So the question now becomes how come we get such a large value. Looks like we somehow use the space-width value instead of the character glyph's width, not sure why. I guess stepping through the code I've shown from xdisp.c is still necessary to understand this.