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: Parsing of fontconfig font names and other font related stuff. Date: Wed, 08 Jul 2009 20:01:18 +0800 Message-ID: <4A548A8E.2060408@gnu.org> References: <4A539AB0.3010605@swipnet.se> <4A545A85.2060803@swipnet.se> <4A5482B4.2090101@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1247054622 19406 80.91.229.12 (8 Jul 2009 12:03:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 12:03:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 08 14:03:35 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 1MOVs7-0001nI-Cg for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 14:03:35 +0200 Original-Received: from localhost ([127.0.0.1]:44567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOVs6-0006Se-G0 for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 08:03:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOVqe-0005sm-6f for emacs-devel@gnu.org; Wed, 08 Jul 2009 08:02:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOVqX-0005rA-MO for emacs-devel@gnu.org; Wed, 08 Jul 2009 08:02:02 -0400 Original-Received: from [199.232.76.173] (port=41053 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOVqW-0005qw-VU for emacs-devel@gnu.org; Wed, 08 Jul 2009 08:01:57 -0400 Original-Received: from mail-pz0-f201.google.com ([209.85.222.201]:46282) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOVqW-0005YC-Dq for emacs-devel@gnu.org; Wed, 08 Jul 2009 08:01:56 -0400 Original-Received: by pzk39 with SMTP id 39so4405237pzk.25 for ; Wed, 08 Jul 2009 05:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=sDS8Y2m7Z5GcZZnzJUyPqZem3HNY1vkg+ivRRRA7crk=; b=WJaRMDRSbsJr+tAeoQLuRR64IcuLIZEjhDeUS8LxFC4IXp/OBQr6dmULXS+pDlTAT/ lCUuzA/PgohI8jSndMrOR1oQ+i3HKKJvulLwwHPgulEf7ws+UXcTbeGDGcYjXGVrXWY+ PJedW8VyVXSUO4QpcEncRDq277nL1TBntOues= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=bFeRCCf8E9TkxUYOGz2nkOLc/gq3q1rSmZsYWYIfhpuE6HczaYXEFLPXoG2kHiTKfF NJ9nMwlDt12BH+NfnSCr7En4pfuveHTSNJo+d8royZ19u+vN8yjcEw+hps5PvM377izL NT5ruHlnRB3WRsQgBDvGrxf9Zw41jKvw3X/iU= Original-Received: by 10.143.11.11 with SMTP id o11mr2251064wfi.288.1247054515081; Wed, 08 Jul 2009 05:01:55 -0700 (PDT) Original-Received: from ?192.168.249.26? ([124.13.7.225]) by mx.google.com with ESMTPS id 30sm6198004wfg.10.2009.07.08.05.01.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 08 Jul 2009 05:01:54 -0700 (PDT) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <4A5482B4.2090101@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/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:112174 Archived-At: Jason Rumney wrote: > Jan Djärv wrote: >> Yes. Gnome has 96 dpi as default (settable in a user desktop >> settings dialog), fontconfig seems to have 75. > > I'm surprised that both Gnome and fontconfig are using hard-coded > values, and not getting the monitor spec from X (at least on my system > the X server reports the physical size it has read from the monitor at > startup, so the information required to get the proper dpi setting > appears to be in there somewhere). Actually, re-reading what you wrote, they may be doing that but snapping to a commonly used dpi value (Windows does that, defaulting to either 72, 96dpi or 120dpi, depending on monitor resolution). Since your actual monitor resolution is about half way between 75 and 96, fontconfig and Gnome may be doing that snapping differently - also a lot of X fonts seem to be either 75 or 100dpi, so font config may be using those to snap to, while Gnome is using the same values as Windows. It'd be good if someone like freedesktop.org could work out a spec for everyone to follow so that things were consistent, as lack of consistency in areas like this is one of the biggest complaints from Windows and Mac users trying to switch to Free software.