From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chip Coldwell Newsgroups: gmane.emacs.devel Subject: Re: font question Date: Mon, 23 Jun 2008 17:27:35 -0400 (EDT) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1214256649 17150 80.91.229.12 (23 Jun 2008 21:30:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 21:30:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 23:31:34 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 1KAtbW-0003hI-FE for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 23:29:38 +0200 Original-Received: from localhost ([127.0.0.1]:49070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAtah-000715-7j for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 17:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAta1-0006iI-Gq for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:28:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAta0-0006hQ-4c for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:28:05 -0400 Original-Received: from [199.232.76.173] (port=56007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAtZz-0006hF-7a for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:28:03 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]:53946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAtZy-0006hH-AL for emacs-devel@gnu.org; Mon, 23 Jun 2008 17:28:02 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m5NLRafa008103 for ; Mon, 23 Jun 2008 17:27:36 -0400 Original-Received: from mail.boston.redhat.com (mail.boston.redhat.com [10.16.255.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5NLRZo7015169 for ; Mon, 23 Jun 2008 17:27:35 -0400 Original-Received: from dhcp-100-19-199.bos.redhat.com (dhcp-100-19-199.bos.redhat.com [10.16.19.199]) by mail.boston.redhat.com (8.13.1/8.13.1) with ESMTP id m5NLRZVO005333 for ; Mon, 23 Jun 2008 17:27:35 -0400 In-Reply-To: User-Agent: Alpine 1.10 (LFD 962 2008-03-14) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:99810 Archived-At: On Mon, 23 Jun 2008, Chip Coldwell wrote: > I have this in my .emacs > > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(default ((t (:family "DejaVu Sans Mono" :height 100)))) > '(variable-pitch ((t (:family "Liberation Sans" :height 100))))) > > and it seems to do what I want (although the font I see on screen > looks a lot bigger to my eye than 10pt that is implied by the > :height). 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 Weight: normal Slant: normal Foreground: #000000 Background: #ffffff Underline: nil Overline: nil Strike-through: nil Box: nil Inverse: nil Stipple: nil Font: # Fontset: -unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-fontset-auto2 Inherit: unspecified Note that "Height: 96" but the XLFD, contains "-12-" in the pxlsz field. Note that #define XINT(a) (((EMACS_INT) (a)) >> GCTYPEBITS) and #define GCTYPEBITS 3 on my platform, thus XINT(96) == 96 >> 3 == 96/8 == 12 Is the :height key in a font-spec supposed to be a Lisp integer? Seems like an ugly thing to put the user through. I will continue to debug this. Chip -- Charles M. "Chip" Coldwell Senior Software Engineer Red Hat, Inc 978-392-2426 GPG ID: 852E052F GPG FPR: 77E5 2B51 4907 F08A 7E92 DE80 AFA9 9A8F 852E 052F