aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2003-09-24 15:52:21 +0000
committerLuc Teirlinck2003-09-24 15:52:21 +0000
commit31572e292e15d45f81792e189a0d192cafe2aa08 (patch)
tree54896c2d021be1e1d903bc589c15273ad280bdd6
parentd1794b732084431eb0ed87d4da650e7eada649b5 (diff)
downloademacs-31572e292e15d45f81792e189a0d192cafe2aa08.tar.gz
emacs-31572e292e15d45f81792e189a0d192cafe2aa08.zip
(Font X): Mention new default font. More fully describe long font
names, wildcard patterns and the problems involved. (Result of discussion on emacs-devel.)
-rw-r--r--man/cmdargs.texi53
1 files changed, 38 insertions, 15 deletions
diff --git a/man/cmdargs.texi b/man/cmdargs.texi
index ffee371887d..2c021a61a48 100644
--- a/man/cmdargs.texi
+++ b/man/cmdargs.texi
@@ -694,11 +694,10 @@ remote machine.
694@appendixsec Font Specification Options 694@appendixsec Font Specification Options
695@cindex font name (X Window System) 695@cindex font name (X Window System)
696 696
697 By default, Emacs displays text in the font named @samp{9x15}, which 697 By default, Emacs displays text in a twelve point Courier font (when
698makes each character nine pixels wide and fifteen pixels high. You can 698using X). You can specify a different font on your command line
699specify a different font on your command line through the option 699through the option @samp{-fn @var{name}} (or @samp{--font}, which is
700@samp{-fn @var{name}} (or @samp{--font}, which is an alias for 700an alias for @samp{-fn}).
701@samp{-fn}).
702 701
703@table @samp 702@table @samp
704@item -fn @var{name} 703@item -fn @var{name}
@@ -709,12 +708,19 @@ specify a different font on your command line through the option
709Use font @var{name} as the default font. 708Use font @var{name} as the default font.
710@end table 709@end table
711 710
712 Under X, each font has a long name which consists of eleven words or 711 Under X, each font has a long name which consists of fourteen words
713numbers, separated by dashes. Some fonts also have shorter 712or numbers, separated by dashes. Some fonts also have shorter
714nicknames---@samp{9x15} is such a nickname. You can use either kind of 713nicknames. For instance, @samp{9x15} is such a nickname. This font
715name. You can use wildcard patterns for the font name; then Emacs lets 714makes each character nine pixels wide and fifteen pixels high. You
716X choose one of the fonts that match the pattern. Here is an example, 715can use either kind of name. Case is insignificant in both kinds.
717which happens to specify the font whose nickname is @samp{6x13}: 716You can use wildcard patterns for the font name; then Emacs lets X
717choose one of the fonts that match the pattern. The wildcard
718character @samp{*} matches any sequence of characters (including none)
719and @samp{?} matches any single character. However, matching is
720implementation-dependent, and can be inaccurate when wildcards match
721dashes in a long name. For reliable results, supply all 14 dashes and
722use wildcards only within a field. Here is an example, which happens
723to specify the font whose nickname is @samp{6x13}:
718 724
719@smallexample 725@smallexample
720emacs -fn \ 726emacs -fn \
@@ -728,11 +734,23 @@ You can also specify the font in your @file{.Xdefaults} file:
728emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1 734emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1
729@end smallexample 735@end smallexample
730 736
737 Note that if you use a wildcard pattern on the command line, you
738need to enclose it in single or double quotes, to prevent the shell
739from accidentally expanding it into a list of file names. On the
740other hand, you should not quote the name in the @file{.Xdefaults}
741file.
742
743The default font used by Emacs (under X) is:
744
745@smallexample
746-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
747@end smallexample
748
731 A long font name has the following form: 749 A long font name has the following form:
732 750
733@smallexample 751@smallexample
734-@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{} 752-@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{}
735@dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{charset} 753@dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{registry}-@var{encoding}
736@end smallexample 754@end smallexample
737 755
738@table @var 756@table @var
@@ -773,9 +791,14 @@ This is @samp{m} (monospace), @samp{p} (proportional) or @samp{c}
773(character cell). 791(character cell).
774@item width 792@item width
775This is the average character width, in pixels, multiplied by ten. 793This is the average character width, in pixels, multiplied by ten.
776@item charset 794@item registry
777This is the character set that the font depicts. 795@itemx encoding
778Normally you should use @samp{iso8859-1}. 796These together make up the X font character set that the font depicts.
797(X font character sets are not the same as Emacs charsets, but they
798are solutions for the same problem.) You can use the
799@command{xfontsel} program to check which choices you have. However,
800normally you should use @samp{iso8859} for @var{registry} and @samp{1}
801for @var{encoding}.
779@end table 802@end table
780 803
781@cindex listing system fonts 804@cindex listing system fonts