From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Fixed-pitch and variable-pitch faces Date: Mon, 09 Jun 2008 00:49:53 -0400 Message-ID: <87bq2bus9a.fsf@stupidchicken.com> References: <871w39mcx5.fsf@stupidchicken.com> <877icz5rai.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212987014 25185 80.91.229.12 (9 Jun 2008 04:50:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2008 04:50:14 +0000 (UTC) Cc: monnier@iro.umontreal.ca, cloos@jhcloos.com, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 09 06:50:51 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 1K5ZLG-0003tP-ND for ged-emacs-devel@m.gmane.org; Mon, 09 Jun 2008 06:50:50 +0200 Original-Received: from localhost ([127.0.0.1]:39265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5ZKT-00065r-KJ for ged-emacs-devel@m.gmane.org; Mon, 09 Jun 2008 00:50:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5ZKO-00064i-Jm for emacs-devel@gnu.org; Mon, 09 Jun 2008 00:49:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5ZKM-00061i-Pk for emacs-devel@gnu.org; Mon, 09 Jun 2008 00:49:55 -0400 Original-Received: from [199.232.76.173] (port=54705 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5ZKM-00061Z-Mc for emacs-devel@gnu.org; Mon, 09 Jun 2008 00:49:54 -0400 Original-Received: from c-98-216-111-182.hsd1.ma.comcast.net ([98.216.111.182]:10516 helo=furry) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5ZKM-0007p3-9b for emacs-devel@gnu.org; Mon, 09 Jun 2008 00:49:54 -0400 Original-Received: by furry (Postfix, from userid 1000) id C834DC054; Mon, 9 Jun 2008 00:49:53 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Mon, 09 Jun 2008 11:59:53 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:98759 Archived-At: Kenichi Handa writes: > As far as I know, fontconfig's API FcFontMatch is very > difficult to use here. It always returns a font that > fontconfig thinks best matching with the given pattern. If > the family name of the returned font is different from the > requested one, there's no way to know whether the requested > family name is remapped (or selected as an alias) by some > config file or not. > > So, Emacs currently uses FcFontList only (except for such > generic families; monospace, sans-serit, serif). I see. What if Emacs always uses FcFontMatch if it's compiled with fontconfig support? IIUC, this means that fonts using the x font backend are never selected, since fontconfig will always try to find a match. But this may be acceptable in practice. The alternative is to keep things as they are now, and deprecate the use of the `fixed-pitch' and `variable-pitch' faces within Emacs. Stop using them in the startup screen. This is not really optimal, since the underlying problem is unsolved. In particular, there would be no way for an Elisp package to say "use an anti-alised courier font" and have it work reliably. WDYT? > In your case, what is returned by this? > % fc-list courier ~ $ fc-list courier ~ $ This is on Ubuntu 8.04.