diff options
| author | Luc Teirlinck | 2003-09-24 15:52:21 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2003-09-24 15:52:21 +0000 |
| commit | 31572e292e15d45f81792e189a0d192cafe2aa08 (patch) | |
| tree | 54896c2d021be1e1d903bc589c15273ad280bdd6 | |
| parent | d1794b732084431eb0ed87d4da650e7eada649b5 (diff) | |
| download | emacs-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.texi | 53 |
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 |
| 698 | makes each character nine pixels wide and fifteen pixels high. You can | 698 | using X). You can specify a different font on your command line |
| 699 | specify a different font on your command line through the option | 699 | through the option @samp{-fn @var{name}} (or @samp{--font}, which is |
| 700 | @samp{-fn @var{name}} (or @samp{--font}, which is an alias for | 700 | an 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 | |||
| 709 | Use font @var{name} as the default font. | 708 | Use 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 |
| 713 | numbers, separated by dashes. Some fonts also have shorter | 712 | or numbers, separated by dashes. Some fonts also have shorter |
| 714 | nicknames---@samp{9x15} is such a nickname. You can use either kind of | 713 | nicknames. For instance, @samp{9x15} is such a nickname. This font |
| 715 | name. You can use wildcard patterns for the font name; then Emacs lets | 714 | makes each character nine pixels wide and fifteen pixels high. You |
| 716 | X choose one of the fonts that match the pattern. Here is an example, | 715 | can use either kind of name. Case is insignificant in both kinds. |
| 717 | which happens to specify the font whose nickname is @samp{6x13}: | 716 | You can use wildcard patterns for the font name; then Emacs lets X |
| 717 | choose one of the fonts that match the pattern. The wildcard | ||
| 718 | character @samp{*} matches any sequence of characters (including none) | ||
| 719 | and @samp{?} matches any single character. However, matching is | ||
| 720 | implementation-dependent, and can be inaccurate when wildcards match | ||
| 721 | dashes in a long name. For reliable results, supply all 14 dashes and | ||
| 722 | use wildcards only within a field. Here is an example, which happens | ||
| 723 | to specify the font whose nickname is @samp{6x13}: | ||
| 718 | 724 | ||
| 719 | @smallexample | 725 | @smallexample |
| 720 | emacs -fn \ | 726 | emacs -fn \ |
| @@ -728,11 +734,23 @@ You can also specify the font in your @file{.Xdefaults} file: | |||
| 728 | emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1 | 734 | emacs.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 | ||
| 738 | need to enclose it in single or double quotes, to prevent the shell | ||
| 739 | from accidentally expanding it into a list of file names. On the | ||
| 740 | other hand, you should not quote the name in the @file{.Xdefaults} | ||
| 741 | file. | ||
| 742 | |||
| 743 | The 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 |
| 775 | This is the average character width, in pixels, multiplied by ten. | 793 | This is the average character width, in pixels, multiplied by ten. |
| 776 | @item charset | 794 | @item registry |
| 777 | This is the character set that the font depicts. | 795 | @itemx encoding |
| 778 | Normally you should use @samp{iso8859-1}. | 796 | These 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 | ||
| 798 | are solutions for the same problem.) You can use the | ||
| 799 | @command{xfontsel} program to check which choices you have. However, | ||
| 800 | normally you should use @samp{iso8859} for @var{registry} and @samp{1} | ||
| 801 | for @var{encoding}. | ||
| 779 | @end table | 802 | @end table |
| 780 | 803 | ||
| 781 | @cindex listing system fonts | 804 | @cindex listing system fonts |