From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: unfrostedpoptart Newsgroups: gmane.emacs.help Subject: Re: default font for Mac, WinXP, and Linux? Date: Thu, 16 Dec 2010 13:56:03 -0800 (PST) Organization: http://groups.google.com Message-ID: <0e158d8a-aad5-46bb-995b-e5472bf23807@o14g2000prn.googlegroups.com> References: <9a091411-0a94-4846-8359-d417991265ac@h17g2000pre.googlegroups.com> <08ff3e79-6167-4218-8fc0-a00c46489def@29g2000yqq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292539262 15531 80.91.229.12 (16 Dec 2010 22:41:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 22:41:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 23:40:58 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTMVO-0008Uv-2o for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 23:40:58 +0100 Original-Received: from localhost ([127.0.0.1]:40285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTMVN-00056X-K2 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 17:40:57 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!o14g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 138.239.109.159 Original-X-Trace: posting.google.com 1292536564 17706 127.0.0.1 (16 Dec 2010 21:56:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 16 Dec 2010 21:56:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o14g2000prn.googlegroups.com; posting-host=138.239.109.159; posting-account=S61AnQkAAADt4_PSYpI-Tm-z1E4cd7xa User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183354 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77606 Archived-At: On Dec 16, 2:40=A0am, Peter Dyballa wrote: > Am 16.12.2010 um 08:52 schrieb unfrostedpoptart: > > >> I'm stumped and need advice. =A0I'm running emacs 23.2.1 on Linux > >> (Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5). > >> I'm trying to use a common .emacs.d/init.el and can't get the default > >> font to work across the 3 environments. =A0I just want them all to com= e > >> up with a nice, fixed-width font. =A0courier-new would be fine and > >> should exist on all the machines. =A0How do I do this? > > Variables exist: system-type, window-system. > Lucida Sans Typewriter exists in Java. And Java is everywhere. You =A0 > could also think of TeX. It has Latin Modern, the GNU FreeFonts, =A0 > Inconsolata,... Thanks for the hints. I had to do two things in my init.el. First, I added these lines: (if (eq window-system 'x) (set-face-attribute 'default nil :font "Lucidatypewriter-10")) ;; Linux (if (eq window-system 'w32) (set-face-attribute 'default nil :font "Lucida Console-12")) ;; WinXP (if (eq window-system 'ns) (set-face-attribute 'default nil :font "lucidasanstypewriter-12")) ;; Mac OSX I also had to remove the font family and size references in the custom- set-faces section added by the customize menus.