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: font question Date: Mon, 23 Jun 2008 14:27:42 -0400 (EDT) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1214245693 7607 80.91.229.12 (23 Jun 2008 18:28:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 18:28:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 20:28:58 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 1KAqmX-0007en-Uk for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 20:28:50 +0200 Original-Received: from localhost ([127.0.0.1]:44488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAqli-0005XP-Da for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 14:27:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAqld-0005WR-4h for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:27:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAqlb-0005WC-Nr for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:27:52 -0400 Original-Received: from [199.232.76.173] (port=53173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAqlb-0005W5-J9 for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:27:51 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]:44525) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAqla-0008Eb-WC for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:27:51 -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 m5NIRhdG001368 for ; Mon, 23 Jun 2008 14:27:43 -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 m5NIRgiV009170 for ; Mon, 23 Jun 2008 14:27:42 -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 m5NIRgO9005532 for ; Mon, 23 Jun 2008 14:27:42 -0400 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:99796 Archived-At: 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). However, if I open a new frame with C-5-2, it uses the default values for both fixed and variable-width fonts. I can set (add-to-list 'default-frame-alist '(font . "-unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso8859-1")) and that sets the fixed-width font correctly, but it does not fix the variable-width fonts. It seems to me that custom-set-faces should do more than set the faces for the initial frame; it should set the faces for all subsequently created frames also, no? 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