From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#39082: Inconsolata v3.000 has too wide spacing Date: Mon, 13 Jan 2020 18:03:37 +0100 Message-ID: References: <83eew47kix.fsf@gnu.org> <83d0bo7gwn.fsf@gnu.org> <83a76s7eaf.fsf@gnu.org> <838smc7bwn.fsf@gnu.org> <83zher5nyt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24082"; mail-complaints-to="usenet@blaine.gmane.org" Cc: greselin.andrea@gmail.com, 39082@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 13 18:07:38 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 1ir3A6-000vYh-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jan 2020 18:05:58 +0100 Original-Received: from localhost ([::1]:53276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir3A5-0004xy-3R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jan 2020 12:05:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60612) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir38F-0003KU-QO for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 12:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir38E-0002Sd-GP for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 12:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53991) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir38E-0002SD-Ce for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 12:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ir38E-0001iq-8A for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 12:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jan 2020 17:04: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.15789350266597 (code B ref 39082); Mon, 13 Jan 2020 17:04:02 +0000 Original-Received: (at 39082) by debbugs.gnu.org; 13 Jan 2020 17:03:46 +0000 Original-Received: from localhost ([127.0.0.1]:59964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir37y-0001iK-JT for submit@debbugs.gnu.org; Mon, 13 Jan 2020 12:03:46 -0500 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:54232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir37x-0001i8-G4 for 39082@debbugs.gnu.org; Mon, 13 Jan 2020 12:03:46 -0500 Original-Received: by mail-wm1-f52.google.com with SMTP id m24so10544696wmc.3 for <39082@debbugs.gnu.org>; Mon, 13 Jan 2020 09:03:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=QDlAAnz9+vGOX9hDQP+zi3I6c8zb0DiXLQ9ecDjkja0=; b=i5kAliv7Z0zYq+Rula3QxECmeWlwPdoMvg3fjdMOEHY9V5XjEm1RnaH3I19eOr0EHP 2n7lZfb80F8lfKbnlLB2iHPO5c1iwUfEYAf6NzhuS1rX/y08KlB63blEhWuY8DypIt93 j9xinxhTmCQRLC+DNkw1Yk9mlRydR8Oe7G692pBGNR0idMQ0hn69xIMvc45Uic6sKA+T /9P6ooDZWON0yxfTonpqqgTO8FM9PPvKT6NmeqfETFBNdxKEU5IymyW3ZRs+97sVMsMh nmYxE3MUc81i3gc/eyb9/uQGZOtKhkw6wMt6poxlrUJY6v97IQQ9Ft+vYG21irJCCD7H fvjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=QDlAAnz9+vGOX9hDQP+zi3I6c8zb0DiXLQ9ecDjkja0=; b=mDNLHZKsds5cpgs5Kx/iUTRc3No9zDs31689FitDhqgTipdAnZT778r7wBuIX321Us lGPhu8ODPCEI0dAkE29Oztk26+iKEemdIFaLlvR86yFYFaeN6CSusJ86JdGkkUiW8miH pa4Tda1VHiag3Ci+eb6mccPaGXiMeQiEuigRutd6TVgmaLhhVFEARZlLgrNnMfnGJ+nY BAGB22otjEQxDGky/ixnfbfsEhkX/Vo5X5gg1p1QGwQL9O9SS3FjcsLXuYhnG1c4+WAs ooU3wbBtx7I9dYNtVZYmj1UF3ZCITrcGoz6AuqTF8n3xDEPh/SXOrcu2uISwRMZ0z26I q8Hw== X-Gm-Message-State: APjAAAWdpojOZPOTgupHOvsd9MM6qG2VdjVfkKlU71rCHIvW9iZsoJO/ i+I/iQkTc9+/XC9TEV77DFocPjfy X-Google-Smtp-Source: APXvYqxCWjlByztbA9sd4nJKArQ9KCRbLJh+Ca6+woE48ZK2X68TT4IP0a4kAsQ+M4WfsStwbekQ4g== X-Received: by 2002:a7b:c750:: with SMTP id w16mr22484263wmk.46.1578935019217; Mon, 13 Jan 2020 09:03:39 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id g7sm15787358wrq.21.2020.01.13.09.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 09:03:38 -0800 (PST) In-Reply-To: (Robert Pluim's message of "Mon, 13 Jan 2020 17:43:14 +0100") 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:174539 Archived-At: >>>>> On Mon, 13 Jan 2020 17:43:14 +0100, Robert Pluim s= aid: >>>>> On Mon, 13 Jan 2020 18:18:50 +0200, Eli Zaretskii said: >>> From: Robert Pluim >>> Cc: Andrea Greselin , 39082@debbugs.gnu= .org >>> Date: Mon, 13 Jan 2020 10:27:32 +0100 >>>=20 Eli> So the question now becomes how come we get such a large value. L= ooks Eli> like we somehow use the space-width value instead of the character Eli> glyph's width, not sure why. I guess stepping through the code I'= ve Eli> shown from xdisp.c is still necessary to understand this. >>>=20 >>> I can reproduce this, but I don=CA=BCt know how much effort we shou= ld spend >>> getting to the bottom of it: a Cairo-enabled build (ie !XFT) does n= ot >>> have this problem. Eli> So I guess this is some kind of Xft bug? In that case, I think it Eli> would be enough to describe the Cairo workaround in etc/PROBLEMS, = and Eli> close the bug with that. Robert> It=CA=BCs either a bug or a limitation in the Xft interface. I = see the Robert> width of characters coming back from XftGlyphExtents as 26, wit= h all Robert> the other metrics as 0, so I don=CA=BCt think there=CA=BCs much= we can do. How about the following (assuming the Inconsolata or libXft devs don=CA=BCt come up with an alternative API we can call). ** Under X, some characters are unexpectedly wide. e.g. recent versions of Inconsolata show this issue for almost all of its characters. Due to either a limitation in the Xft interface used by Emacs, or an Xft bug, the determination of the width of some characters is incorrect. Emacs built with Cairo enabled ("configure --with-cairo") and the appropriate cairo development packages installed does not have this issue. See and for more discussion.