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#35079: 26.1; Font rendering - problem with bdf fonts Date: Tue, 02 Apr 2019 17:56:12 +0300 Message-ID: <83sgv0foc3.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8586"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35079@debbugs.gnu.org To: Max Xiong , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 16:57:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBKqc-00021J-Fd for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 16:57:10 +0200 Original-Received: from localhost ([127.0.0.1]:54128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBKqb-0003u7-HQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 10:57:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBKqV-0003ru-Cu for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 10:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBKqU-0002kj-B6 for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 10:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBKqU-0002kd-4k for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBKqT-0002p2-VL for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 10:57: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: Tue, 02 Apr 2019 14:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35079 X-GNU-PR-Package: emacs Original-Received: via spool by 35079-submit@debbugs.gnu.org id=B35079.155421697010782 (code B ref 35079); Tue, 02 Apr 2019 14:57:01 +0000 Original-Received: (at 35079) by debbugs.gnu.org; 2 Apr 2019 14:56:10 +0000 Original-Received: from localhost ([127.0.0.1]:41447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBKpb-0002no-Rs for submit@debbugs.gnu.org; Tue, 02 Apr 2019 10:56:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBKpa-0002nL-5r for 35079@debbugs.gnu.org; Tue, 02 Apr 2019 10:56:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBKpU-000246-Qx; Tue, 02 Apr 2019 10:56:00 -0400 Original-Received: from [176.228.60.248] (port=1049 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hBKpU-0001aY-4g; Tue, 02 Apr 2019 10:56:00 -0400 In-reply-to: (message from Max Xiong on Tue, 2 Apr 2019 01:31:09 -0400) 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157092 Archived-At: > From: Max Xiong > Date: Tue, 2 Apr 2019 01:31:09 -0400 > > When loading a bdf or a pcf font, specifically unifont in my case, the width of characters is incorrect. Does this happen only with Unifont, or with any BDF font? > To reproduce: > Download the bdf.gz file from the unifont website at http://unifoundry.com/unifont/index.html > Change the extension to .bdf > Install the font. In my case, I needed to copy it to ~/.local/share/fonts/misc/ > Run fc-cache -fv in the terminal. > Start emacs. > From the menu bar, choose options -> select default font. > Search for and choose Unifont Sans Serif size 12 (size should go to 12 anyways). > > The unexpected result is that each character is rendered with a full width, as if there is a space after it. The > cursor becomes square instead of a half-width rectangle. This could be the realization of the danger described in the commentary to ftfont.c:get_adstyle_property, or some other issue with BDF fonts. I don't think they are used widely anymore, so maybe our code accrued some bitrot. > Additionally, note that this does NOT occur with the ttf version of unifont. Nor does this bug occur when I use > the bdf unifont inside the gnome terminal. CC'ing Handa-san, in the hope that he could look into this issue. Thanks.