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: Fri, 03 May 2019 11:36:14 +0300 Message-ID: <837eb8nddt.fsf@gnu.org> References: <87h8b2chv8.fsf@aist.go.jp> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26632"; mail-complaints-to="usenet@blaine.gmane.org" Cc: xsrvmy@gmail.com, 35079@debbugs.gnu.org To: handa.kenichi@aist.go.jp (K.Handa) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 03 23:20:08 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 1hMfb6-0012u5-3b for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2019 23:20:00 +0200 Original-Received: from localhost ([127.0.0.1]:36607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMTgr-0004eo-Ru for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2019 04:37:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMTgl-0004ei-Ga for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMTgk-0005RR-EV for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMTgk-0005RB-BJ for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMTgk-0001aJ-26 for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:37: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: Fri, 03 May 2019 08:37: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.15568726026063 (code B ref 35079); Fri, 03 May 2019 08:37:02 +0000 Original-Received: (at 35079) by debbugs.gnu.org; 3 May 2019 08:36:42 +0000 Original-Received: from localhost ([127.0.0.1]:47648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMTgQ-0001Zj-1C for submit@debbugs.gnu.org; Fri, 03 May 2019 04:36:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMTgO-0001ZX-EX for 35079@debbugs.gnu.org; Fri, 03 May 2019 04:36:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMTgI-0005B6-0u; Fri, 03 May 2019 04:36:34 -0400 Original-Received: from [176.228.60.248] (port=1963 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hMTgH-0002hB-8L; Fri, 03 May 2019 04:36:33 -0400 In-reply-to: <87h8b2chv8.fsf@aist.go.jp> (handa.kenichi@aist.go.jp) 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:158719 Archived-At: > From: handa.kenichi@aist.go.jp (K.Handa) > Cc: xsrvmy@gmail.com, 35079@debbugs.gnu.org, handa@gnu.org > Date: Sat, 13 Apr 2019 19:35:55 +0900 > > 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 don't know the exact meaning of FC_CHARCELL. I could't find it on the > Internet. Does anyone know what it means and why fontconfig uses it for > the gnu unifont? 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. Thanks.