unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: jasonr@gnu.org, emacs-devel@gnu.org
Subject: Re: Setting font to Lucida Grande on Mac OS X
Date: Fri, 19 Sep 2003 09:34:39 -0500 (CDT)	[thread overview]
Message-ID: <200309191434.h8JEYdH24981@raven.dms.auburn.edu> (raw)
In-Reply-To: <87d6dx82kq.fsf@tleepslib.sk.tsukuba.ac.jp> (stephen@xemacs.org)

The patch below incorporates the latest suggestions made by Richard
and Stephen.

It also includes some further changes.  

It points out that both font nicknames and XLFD's are
case-insensitive.  It also clarifies that wildcards can only be used
for XLFD's, not for nicknames.  (At least not in the situations we are
describing.  Certain Lisp functions _do_ allow wildcards in
nicknames.)

Also the sentence:

  By default, Emacs displays text in the font named @samp{9x15}, which
makes each character nine pixels wide and fifteen pixels high.

is obsolete since Emacs 21.

I listed:

-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1

as the default used by Emacs (under X), because that is the first font
tried by `x-create-frame' and in a fully uncustomized Emacs, that
choice does not seem to get overridden, at least not under X.  Emacs
does seem to use different defaults on other operating systems, so I
mentioned that the default only applies under X.

Any comments on this?


===File ~/cmdargs-diff-3====================================
cd ~/
diff -c /home/teirllm/cmdargs.old.texi /home/teirllm/cmdargs.texi
*** /home/teirllm/cmdargs.old.texi	Tue Sep 16 18:58:01 2003
--- /home/teirllm/cmdargs.texi	Fri Sep 19 08:58:52 2003
***************
*** 691,698 ****
  @appendixsec Font Specification Options
  @cindex font name (X Window System)
  
!   By default, Emacs displays text in the font named @samp{9x15}, which
! makes each character nine pixels wide and fifteen pixels high.  You can
  specify a different font on your command line through the option
  @samp{-fn @var{name}} (or @samp{--font}, which is an alias for
  @samp{-fn}).
--- 691,698 ----
  @appendixsec Font Specification Options
  @cindex font name (X Window System)
  
!   By default, Emacs displays text in a font which makes each character
! seven pixels wide and twelve pixels high.  ( See below.)  You can
  specify a different font on your command line through the option
  @samp{-fn @var{name}} (or @samp{--font}, which is an alias for
  @samp{-fn}).
***************
*** 706,717 ****
  Use font @var{name} as the default font.
  @end table
  
!   Under X, each font has a long name which consists of eleven words or
! numbers, separated by dashes.  Some fonts also have shorter
! nicknames---@samp{9x15} is such a nickname.  You can use either kind of
! name.  You can use wildcard patterns for the font name; then Emacs lets
! X choose one of the fonts that match the pattern.  Here is an example,
! which happens to specify the font whose nickname is @samp{6x13}:
  
  @smallexample
  emacs -fn \
--- 706,724 ----
  Use font @var{name} as the default font.
  @end table
  
!   Under X, each font has a long name which consists of fourteen words
! or numbers, separated by dashes.  Some fonts also have shorter
! nicknames.  For instance, @samp{9x15} is such a nickname.  This font
! makes each character nine pixels wide and fifteen pixels high.  You
! can use either kind of name.  Case is insignificant in both kinds.  In
! a long name, you can use wildcard patterns; then Emacs lets X choose
! one of the fonts that match the pattern.  The wildcard character
! @samp{*} matches any sequence of characters (including none) and
! @samp{?} matches any single character.  However, matching is
! implementation-dependent, and often inaccurate, when wildcards match
! dashes.  It works best if you supply all 14 dashes.  Here is an
! example, which happens to specify the font whose nickname is
! @samp{6x13}:
  
  @smallexample
  emacs -fn \
***************
*** 725,735 ****
  emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1
  @end smallexample
  
    A long font name has the following form:
  
  @smallexample
  -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{}
! @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{charset}
  @end smallexample
  
  @table @var
--- 732,748 ----
  emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1
  @end smallexample
  
+   The default font used by Emacs (under X) is:
+ 
+ @smallexample
+ -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
+ @end smallexample
+ 
    A long font name has the following form:
  
  @smallexample
  -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{}
! @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{registry}-@var{encoding}
  @end smallexample
  
  @table @var
***************
*** 770,778 ****
  (character cell).
  @item width
  This is the average character width, in pixels, multiplied by ten.
! @item charset
! This is the character set that the font depicts.
! Normally you should use @samp{iso8859-1}.
  @end table
  
  @cindex listing system fonts
--- 783,796 ----
  (character cell).
  @item width
  This is the average character width, in pixels, multiplied by ten.
! @item registry
! @itemx encoding
! These together make up the X font character set that the font depicts.
! (X font character sets are not the same as Emacs charsets, but they
! are solutions for the same problem.)  You can use the
! @command{xfontsel} program to check which choices you have.  However,
! normally you should use @samp{iso8859} for @var{registry} and @samp{1}
! for @var{encoding}.
  @end table
  
  @cindex listing system fonts

Diff finished at Fri Sep 19 09:02:24
============================================================

  reply	other threads:[~2003-09-19 14:34 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-14 22:43 Setting font to Lucida Grande on Mac OS X Sancho Neves-Graca
2003-09-14 23:10 ` Luc Teirlinck
2003-09-15  5:55 ` Andrew Choi
2003-09-15 15:09   ` Luc Teirlinck
2003-09-16  1:19     ` Sancho Neves-Graca
2003-09-16  3:54     ` Stephen J. Turnbull
2003-09-17  2:34       ` Luc Teirlinck
2003-09-17 12:23         ` Stephen J. Turnbull
2003-09-17 12:49           ` Jason Rumney
2003-09-17 16:55             ` Luc Teirlinck
2003-09-18 15:14               ` Richard Stallman
2003-09-19 11:01               ` Stephen J. Turnbull
2003-09-19 14:34                 ` Luc Teirlinck [this message]
2003-09-19 15:11                   ` Luc Teirlinck
2003-09-20  7:50                   ` Richard Stallman
2003-09-20 12:04                     ` Luc Teirlinck
2003-09-20 13:06                     ` Luc Teirlinck
2003-09-19 15:34                 ` Luc Teirlinck
2003-09-19 22:53                   ` Luc Teirlinck
2003-09-20 21:27                     ` Richard Stallman
2003-09-21  1:13                       ` Luc Teirlinck
2003-09-20 21:26                   ` Richard Stallman
2003-09-22 10:36                     ` Stephen J. Turnbull
2003-09-22 18:23                       ` Luc Teirlinck
2003-09-22 22:57                         ` Luc Teirlinck
2003-09-22 23:08                           ` Luc Teirlinck
2003-09-20  3:30                 ` Luc Teirlinck
2003-09-18 11:05         ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-09-14 23:09 Sancho Neves-Graca
2003-09-14 23:51 ` Luc Teirlinck
2003-09-14 23:55 ` Luc Teirlinck
2003-09-15  4:10 ` Luc Teirlinck
2003-09-15  4:34   ` Luc Teirlinck
2003-09-15  4:47 ` Luc Teirlinck

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200309191434.h8JEYdH24981@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).