From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIERqw6Rydg==?= Newsgroups: gmane.emacs.devel Subject: Parsing of fontconfig font names and other font related stuff. Date: Tue, 07 Jul 2009 20:57:52 +0200 Message-ID: <4A539AB0.3010605@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246993093 28363 80.91.229.12 (7 Jul 2009 18:58:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2009 18:58:13 +0000 (UTC) To: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 07 20:58:06 2009 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 1MOFrh-0006sA-KN for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 20:58:05 +0200 Original-Received: from localhost ([127.0.0.1]:54119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOFrh-0001kl-43 for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 14:58:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOFrc-0001kW-1A for emacs-devel@gnu.org; Tue, 07 Jul 2009 14:58:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOFrX-0001kH-9N for emacs-devel@gnu.org; Tue, 07 Jul 2009 14:57:59 -0400 Original-Received: from [199.232.76.173] (port=54239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOFrX-0001kE-2q for emacs-devel@gnu.org; Tue, 07 Jul 2009 14:57:55 -0400 Original-Received: from proxy1.bredband.net ([195.54.101.71]:35237) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOFrW-00015r-Iq for emacs-devel@gnu.org; Tue, 07 Jul 2009 14:57:54 -0400 Original-Received: from iph1.telenor.se (195.54.127.132) by proxy1.bredband.net (7.3.140.3) id 49F5A1520177C50A for emacs-devel@gnu.org; Tue, 7 Jul 2009 20:57:53 +0200 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqKBAFo3U0pV4S1uPGdsb2JhbACBUZc0AQEBATe2c4QTBQ X-IronPort-AV: E=Sophos;i="4.42,363,1243807200"; d="scan'208";a="27255431" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph1.telenor.se with ESMTP; 07 Jul 2009 20:57:53 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 8342A7FA07B for ; Tue, 7 Jul 2009 20:57:52 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (X11/20090608) X-detected-operating-system: 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:112146 Archived-At: Hello. I'm in the process of getting Emacs to use GConf defaults for font, antialiasing, hints and dpi. The parser in Emacs does not accept "Monospace 8:dpi=96.0". First float values for dpi is not accepted, even they are floats in fontconfig. Secondly spaces before the size isn't accepted either, it is assumed to be in Gtk+-format when a space is there. But fc-match do accept that type of font specification, as do all applications I tried that has xft. Admittedly, the docs (the user manual) seem to indicate that a '-' is required before the size. Ideally I wouldn't like to put stuff like dpi in the font string, but instead have the appropriate backend use the GConf value if no other value is specified. Where would it be appropriate to insert that information? In the xft-backend or in Ffont-spec, or perhaps somewhere else? Thanks, Jan D.