From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Parsing of fontconfig font names and other font related stuff. Date: Wed, 08 Jul 2009 16:29:21 +0200 Message-ID: <4A54AD41.4020103@swipnet.se> References: <4A539AB0.3010605@swipnet.se> <4A545A85.2060803@swipnet.se> <4A548C7A.5020309@swipnet.se> <877hyj9tob.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247063660 18213 80.91.229.12 (8 Jul 2009 14:34:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 14:34:20 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 08 16:34:13 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 1MOYDm-0002oU-NW for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 16:34:07 +0200 Original-Received: from localhost ([127.0.0.1]:51090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOYDl-0003jL-UE for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 10:34:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOY9N-0001U7-3O for emacs-devel@gnu.org; Wed, 08 Jul 2009 10:29:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOY9I-0001QO-Nd for emacs-devel@gnu.org; Wed, 08 Jul 2009 10:29:32 -0400 Original-Received: from [199.232.76.173] (port=57504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOY9I-0001QJ-It for emacs-devel@gnu.org; Wed, 08 Jul 2009 10:29:28 -0400 Original-Received: from proxy1.bredband.net ([195.54.101.71]:55504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOY9G-0003Aj-1k; Wed, 08 Jul 2009 10:29:26 -0400 Original-Received: from iph1.telenor.se (195.54.127.132) by proxy1.bredband.net (7.3.140.3) id 49F5A152017BA330; Wed, 8 Jul 2009 16:29:24 +0200 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkewAJhJVEpV4S1uPGdsb2JhbACBUYgcjxcBAQEBN7gghAgF X-IronPort-AV: E=Sophos;i="4.42,369,1243807200"; d="scan'208";a="27427650" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph1.telenor.se with ESMTP; 08 Jul 2009 16:29:22 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 7B4567FA07B; Wed, 8 Jul 2009 16:29:21 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (X11/20090608) In-Reply-To: <877hyj9tob.fsf@catnip.gol.com> 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:112183 Archived-At: Miles Bader skrev: > Kenichi Handa writes: >>> The fast but kind of ugly way would be to add the defaults from >>> XftDefaultSubstitute to the name if it is an fcname and Xft is present. >> shouldn't the DPI value from GConf be reflected to (struct >> x_display_info).resy or (struct frame).resy? > > You'd think, but IIRC, Gnome just fucks this up. > > [I think it's a "policy" fuckup rather than a technical one.] > The argument I've seen is that selecting font sizes isn't a linear operation (i.e. proportional to dpi), but an angular one (i.e. depends on the size of the screen and the distance to the screen). So for example laptop users sit closer to the screen and don't want fonts to be so much bigger as implied by the dpi difference. Another one is that DPI is kind of fuzzy anyway, for example for projectors. I think a good compromize for an Emacs that uses Xft, is just to check if Xft.dpi is in the Xdefaults, and if it is, just use it. Which is what Handa-san suggested. Jan D.