From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: handa Newsgroups: gmane.emacs.bugs Subject: bug#35079: 26.1; Font rendering - problem with bdf fonts Date: Mon, 06 May 2019 22:12:31 +0900 Message-ID: <87mujzg20w.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="187566"; mail-complaints-to="usenet@blaine.gmane.org" Cc: xsrvmy@gmail.com, 35079@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 06 15:13:15 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 1hNdQh-000mfY-8e for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2019 15:13:15 +0200 Original-Received: from localhost ([127.0.0.1]:56416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNdQg-0001SB-6v for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2019 09:13:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNdQX-0001S5-KX for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 09:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNdQW-0008Ax-Od for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 09:13:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNdQW-0008Ar-LQ for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 09:13:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNdQU-0005xI-2J for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 09:13:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: handa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2019 13:13:02 +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.155714837222873 (code B ref 35079); Mon, 06 May 2019 13:13:02 +0000 Original-Received: (at 35079) by debbugs.gnu.org; 6 May 2019 13:12:52 +0000 Original-Received: from localhost ([127.0.0.1]:55884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNdQK-0005wr-72 for submit@debbugs.gnu.org; Mon, 06 May 2019 09:12:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNdQI-0005wX-1T for 35079@debbugs.gnu.org; Mon, 06 May 2019 09:12:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNdQA-00085r-Jx; Mon, 06 May 2019 09:12:42 -0400 Original-Received: from fl1-60-239-75-42.iba.mesh.ad.jp ([60.239.75.42]:55200 helo=shatin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hNdQ7-0007eP-K5; Mon, 06 May 2019 09:12:40 -0400 Original-Received: from handa by shatin with local (Exim 4.90_1) (envelope-from ) id 1hNdPz-0009mv-UL; Mon, 06 May 2019 22:12:31 +0900 In-Reply-To: <837eb8nddt.fsf@gnu.org> (message from Eli Zaretskii on Fri, 03 May 2019 11:36:14 +0300) 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:158832 Archived-At: In article <837eb8nddt.fsf@gnu.org>, Eli Zaretskii writes: > > For this, I found that fontconfig gives 'spacing' parameter of that font > > as FC_CHARCELL. I think the spacing of that font should be FC_DUAL. > > Anyway, src/xftfont.c of Emacs does not know about FC_CHARCELL. So, > > emacs treats that font as a mono-space font. > > > > I think you can modify the spacing paramter of that font to FC_DUAL by > > writing some code in ~/.fonts.conf. > > > > Or, please try to apply this patch to src/xftfont.c, and rebuild emacs. > Should I install this change now? Can it do any harm? I can't tell because I don't know the exact meaning of FC_CHARCELL. > I found this in > https://github.com/freedesktop/xorg-libXft/blob/master/NEWS: > Version 2.1.7 > Change FC_CHARCELL and FC_MONO interpretation. FC_MONO no longer clips > glyphs to charcell, you must specify FC_CHARCELL for that. > But I guess you saw this too? It sounds like FC_CHARCELL is the same > as monospaced, but with clipping to character cell, whatever that may > mean. I noticed that page, but I did not understand what it means. If spacing of FC_CHARCELL is the same as FC_MONO, why is it used for Unifont which is surely not mono-spaced? --- K. Handa handa@gnu.org