From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Face initialization Date: Tue, 08 Jul 2008 14:40:19 +0100 Message-ID: <48736E43.2050602@gnu.org> References: <87skunbllv.fsf@stupidchicken.com> <87skunt8qp.fsf@stupidchicken.com> <87r6a6xuim.fsf@stupidchicken.com> <87zlot7b0u.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215524650 12982 80.91.229.12 (8 Jul 2008 13:44:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 13:44:10 +0000 (UTC) Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org, cyd@stupidchicken.com, monnier@iro.umontreal.ca To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 08 15:44:57 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 1KGDUd-0003Az-Vj for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 15:44:32 +0200 Original-Received: from localhost ([127.0.0.1]:43340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGDTm-0003HW-PL for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 09:43:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGDRI-0001zu-TX for emacs-devel@gnu.org; Tue, 08 Jul 2008 09:41:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGDRH-0001xw-39 for emacs-devel@gnu.org; Tue, 08 Jul 2008 09:41:04 -0400 Original-Received: from [199.232.76.173] (port=51108 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGDRG-0001xj-UQ for emacs-devel@gnu.org; Tue, 08 Jul 2008 09:41:03 -0400 Original-Received: from mk-outboundfilter-3.mail.uk.tiscali.com ([212.74.114.23]:55075) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGDR7-0001XI-Qr; Tue, 08 Jul 2008 09:40:54 -0400 Original-X-Trace: 142246966/mk-outboundfilter-1.mail.uk.tiscali.com/F2S/$F2S-ACCEPTED/f2s-freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAFAEBvV0hTQxds/2dsb2JhbACBW60p X-IronPort-AV: E=Sophos;i="4.30,323,1212361200"; d="scan'208";a="142246966" X-IP-Direction: IN Original-Received: from i-83-67-23-108.freedom2surf.net (HELO wanchan.jasonrumney.net) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 08 Jul 2008 14:40:52 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 16E0E619; Tue, 8 Jul 2008 14:40:52 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:100450 Archived-At: Richard M Stallman wrote: > I suggest that the main advertised interface should use Xft/fontconfig > notation. > > I do not know this notation, but I won't argue against this. > Can one function accept both of these forms of font specification? Currently the -fn command line argument accepts 3 forms of font specification; GTK, Fontconfig and XLFD, so there is no reason why any other place where fonts are specified as strings could not do the same. GTK and Fontconfig formats are much easier for new users to deal with, as most of the information is optional, and in their simplest forms, they can just be the family name of a font, though for the default font you will usually want to specify a size as well. The following are equivalents in the different formats: GTK: Fixed 12 Fontconfig: Fixed-12 XLFD: -*-Fixed-normal-r-normal-*-*-120-*-*-*-*-*-* GTK: Fixed Bold 12 Fontconfig: Fixed-12:bold XLFD: -*-Fixed-bold-r-normal-*-*-120-*-*-*-*-*-* GTK: unrepresentable (AFAIK) Fontconfig: Fixed-12:bold:foundry=misc XLFD: -misc-Fixed-bold-r-normal-*-*-120-*-*-*-*-*-* AFAIK GTK format only supports specifying family, point size, weight and slant, while fontconfig supports those, plus arbitrary named properties, which can include properties beyond the 14 fields in an XLFD descriptor.