From: unfrostedpoptart <david@therogoffs.com>
To: help-gnu-emacs@gnu.org
Subject: Re: default font for Mac, WinXP, and Linux?
Date: Thu, 16 Dec 2010 13:56:03 -0800 (PST) [thread overview]
Message-ID: <0e158d8a-aad5-46bb-995b-e5472bf23807@o14g2000prn.googlegroups.com> (raw)
In-Reply-To: mailman.13.1292496016.7231.help-gnu-emacs@gnu.org
On Dec 16, 2:40 am, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 16.12.2010 um 08:52 schrieb unfrostedpoptart:
>
> >> I'm stumped and need advice. I'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. I just want them all to come
> >> up with a nice, fixed-width font. courier-new would be fine and
> >> should exist on all the machines. How do I do this?
>
> Variables exist: system-type, window-system.
> Lucida Sans Typewriter exists in Java. And Java is everywhere. You
> could also think of TeX. It has Latin Modern, the GNU FreeFonts,
> 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.
next prev parent reply other threads:[~2010-12-16 21:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 23:32 default font for Mac, WinXP, and Linux? unfrostedpoptart
2010-12-16 7:52 ` Elena
2010-12-16 10:40 ` Peter Dyballa
2010-12-16 10:44 ` Elena
[not found] ` <mailman.13.1292496016.7231.help-gnu-emacs@gnu.org>
2010-12-16 21:56 ` unfrostedpoptart [this message]
2010-12-16 10:11 ` Andrea Crotti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e158d8a-aad5-46bb-995b-e5472bf23807@o14g2000prn.googlegroups.com \
--to=david@therogoffs.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.