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: font question Date: Mon, 23 Jun 2008 22:52:24 +0100 Message-ID: <48601B18.3040003@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214257984 21949 80.91.229.12 (23 Jun 2008 21:53:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 21:53:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chip Coldwell Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 23:53:49 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 1KAtyu-0004Dv-FJ for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 23:53:48 +0200 Original-Received: from localhost ([127.0.0.1]:47422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAty5-0000AA-8b for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 17:52:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAty1-00009p-4S for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:52:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAtxy-00009N-V1 for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:52:52 -0400 Original-Received: from [199.232.76.173] (port=59697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAtxy-00009K-Nv for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:52:50 -0400 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]:54566) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAtxx-0000CJ-R3 for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:52:50 -0400 Original-X-Trace: 101882542/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/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: Ai0FAKm3X0hTQxds/2dsb2JhbACBWrBV X-IronPort-AV: E=Sophos;i="4.27,692,1204502400"; d="scan'208";a="101882542" 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; 23 Jun 2008 22:52:48 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 6B2662EC; Mon, 23 Jun 2008 22:53:49 +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:99812 Archived-At: Chip Coldwell wrote: > I wonder if there isn't a missing XINT somewhere. Here's my default > face: > > Face: default (sample) (customize this face) > Documentation: Basic default face. > Defined in `faces.el'. > > Family: DejaVu Sans Mono > Foundry: unknown > Width: normal > Height: 96 [snip] > Font: # > > Note that "Height: 96" but the XLFD, contains "-12-" in the pxlsz > field. customize-face default shows: [X] Height: [Value Menu] Height in 1/10 pt: 96 perhaps describe-face should also show the units here, to avoid confusion. Note that > > #define XINT(a) (((EMACS_INT) (a)) >> GCTYPEBITS) > > and > > #define GCTYPEBITS 3 > > on my platform, thus > > XINT(96) == 96 >> 3 == 96/8 == 12 I think this is coincidence. A 12 pixel height at 90dpi comes out to 9.6 points, is your display set to 90dpi (within fontconfig or X config, or autodetected by X)?