From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: No XFT in CVS from this morning Date: Wed, 18 Jun 2008 20:06:23 +0900 Message-ID: References: <20080617112122.177cb232.taylor@metasyntax.net> <20080617214153.16043644.taylor@metasyntax.net> <20080617224331.57adb1e2.taylor@metasyntax.net> <20080618064209.5bee6ca7.taylor@metasyntax.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1213787260 11820 80.91.229.12 (18 Jun 2008 11:07:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 11:07:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Taylor Venable Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 18 13:08:15 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K8vWL-0000bq-1I for ged-emacs-devel@m.gmane.org; Wed, 18 Jun 2008 13:08:09 +0200 Original-Received: from localhost ([127.0.0.1]:44690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8vVW-0002fh-I1 for ged-emacs-devel@m.gmane.org; Wed, 18 Jun 2008 07:07:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8vUz-000242-Ro for emacs-devel@gnu.org; Wed, 18 Jun 2008 07:06:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8vUw-0001zH-Bf for emacs-devel@gnu.org; Wed, 18 Jun 2008 07:06:45 -0400 Original-Received: from [199.232.76.173] (port=34396 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8vUv-0001yr-RM for emacs-devel@gnu.org; Wed, 18 Jun 2008 07:06:41 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:50142) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8vUv-0003SV-29 for emacs-devel@gnu.org; Wed, 18 Jun 2008 07:06:41 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5IB7NtF014698; Wed, 18 Jun 2008 20:07:23 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5IB6XUn000296; Wed, 18 Jun 2008 20:06:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m5IB6Npr027624; Wed, 18 Jun 2008 20:06:23 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K8vUd-0002un-6Q; Wed, 18 Jun 2008 20:06:23 +0900 In-reply-to: <20080618064209.5bee6ca7.taylor@metasyntax.net> (message from Taylor Venable on Wed, 18 Jun 2008 06:42:09 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99391 Archived-At: In article <20080618064209.5bee6ca7.taylor@metasyntax.net>, Taylor Venable writes: > On Wed, 18 Jun 2008 12:52:10 +0900 > Kenichi Handa wrote: > > In article <20080617224331.57adb1e2.taylor@metasyntax.net>, Taylor > > Venable writes: > > > > > > % emacs --xrm 'Emacs*FontBackend: xft x' > > > > > I get: "No font backend available" both with and without "-Q". > > > > Oops, sorry, this is the correct form: > > > > % emacs --xrm 'Emacs*FontBackend: xft,x' > Great! That fixes it. I guess perhaps the equivalent Lisp code when > put into the .emacs file doesn't get read early enough to take effect > on the first frame? It seems so. > > xfont-list: -*-DejaVu Sans Mono-*-*-*-*-*-*-*-*-*-*-iso8859-1 > > -misc-dejavu sans mono-medium-r-normal--12-*-75-75-m-*-iso8859-1 [...] > > ftfont-list: -*-DejaVu Sans Mono-*-iso8859-1 > > -unknown-DejaVu Sans Mono-bold-normal-normal-*-m-0-iso8859-1 Hmmm, when Emacs starts, it uses X font which has "misc" foundary, and Emacs remembers that. Later, when the font-backend order is changed, Emacs still prefer a font of "misc" foundary. And, unfortunately, fontconfig returns that same font with "unknown" foundary. It seems that we must remember somehow which font properties are actually specified, and which are just extracted from the selected font. --- Kenichi Handa handa@ni.aist.go.jp