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: Parsing of fontconfig font names and other font related stuff. Date: Wed, 08 Jul 2009 09:55:43 +0900 Message-ID: References: <4A539AB0.3010605@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247014572 21660 80.91.229.12 (8 Jul 2009 00:56:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 00:56:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?us-ascii?Q?=3D=3FUTF-8=3FB=3FSmFuIERqw6Rydg=3D=3D=3F=3D?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 08 02:56:05 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 1MOLS6-0001DU-Oi for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 02:56:03 +0200 Original-Received: from localhost ([127.0.0.1]:53703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOLS6-0000Cq-3i for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 20:56:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOLS0-0000CA-Tf for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:55:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOLRw-00007o-07 for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:55:56 -0400 Original-Received: from [199.232.76.173] (port=60022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOLRv-00007W-RC for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:55:51 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:45234) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOLRv-0006or-4K for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:55:51 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n680tleE004939; Wed, 8 Jul 2009 09:55:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n680tlNk005263; Wed, 8 Jul 2009 09:55:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n680th2D018887; Wed, 8 Jul 2009 09:55:44 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MOLRn-0001N6-TH; Wed, 08 Jul 2009 09:55:43 +0900 In-Reply-To: <4A539AB0.3010605@swipnet.se> (message from =?us-ascii?Q?=3D?= =?us-ascii?Q?=3FUTF-8=3FB=3FSmFuIERqw6Rydg=3D=3D=3F=3D?= on Tue, 07 Jul 2009 20:57:52 +0200) X-detected-operating-system: 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:112155 Archived-At: In article <4A539AB0.3010605@swipnet.se>, =?UTF-8?B?SmFuIERqw6Rydg==?= writes: > 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. At least fc-match doesn't treat this kind of format correctly; "Monospace 8". But, I agree that font_parse_fcname in font.c should be improved. > 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? I think it should be done in xft-backend. By the way, a spec for searching for a font, and a spec for using the found font should be different. I think antialiasing and hints are specs of the latter category. Currently Emacs doesn't distinguish them. This should be fixed somehow. And, I don't know what dpi is for. That information should be available via X server. Is it a way to pretend that you are using a screen of the different DPI? --- Kenichi Handa handa@m17n.org