diff options
| author | Chong Yidong | 2008-12-09 14:27:56 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-12-09 14:27:56 +0000 |
| commit | 001b5dc95fac8839391dcfd4f2a1d5a7955299a8 (patch) | |
| tree | f7e3659ffc9e00fc54d3a0ff0aaafa88384a2504 | |
| parent | c5ca6cd09d90dcf47665eb4b92fd1f5953817006 (diff) | |
| download | emacs-001b5dc95fac8839391dcfd4f2a1d5a7955299a8.tar.gz emacs-001b5dc95fac8839391dcfd4f2a1d5a7955299a8.zip | |
(Font X): Move discussion of quoting to top.
| -rw-r--r-- | doc/emacs/cmdargs.texi | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index ec4eff6be17..f986dfd21ea 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -793,9 +793,17 @@ font. You can specify a different font using the command line option | |||
| 793 | Use @var{font} as the default font. | 793 | Use @var{font} as the default font. |
| 794 | @end table | 794 | @end table |
| 795 | 795 | ||
| 796 | When passing a font specification to Emacs on the command line, you | ||
| 797 | may need to ``quote'' it, by enclosing it in quotation marks, if it | ||
| 798 | contains characters that the shell treats specially (e.g. spaces). | ||
| 799 | Here is an example: | ||
| 800 | |||
| 801 | @smallexample | ||
| 802 | emacs -fn "DejaVu Sans Mono-12" | ||
| 803 | @end smallexample | ||
| 804 | |||
| 796 | @cindex X defaults file | 805 | @cindex X defaults file |
| 797 | @cindex X resources file | 806 | @cindex X resources file |
| 798 | |||
| 799 | You can also specify the font using your X resources file (usually a | 807 | You can also specify the font using your X resources file (usually a |
| 800 | file named @file{.Xdefaults} or @file{.Xresources} in your home | 808 | file named @file{.Xdefaults} or @file{.Xresources} in your home |
| 801 | directory), by adding a line like this: | 809 | directory), by adding a line like this: |
| @@ -806,7 +814,8 @@ emacs.font: @var{font} | |||
| 806 | 814 | ||
| 807 | @noindent | 815 | @noindent |
| 808 | You must restart X, or use the @command{xrdb} command, for the X | 816 | You must restart X, or use the @command{xrdb} command, for the X |
| 809 | resources file to take effect. @xref{Resources}. | 817 | resources file to take effect. @xref{Resources}. When specifying a |
| 818 | font in your X resources file, you should not quote it. | ||
| 810 | 819 | ||
| 811 | @cindex fontconfig | 820 | @cindex fontconfig |
| 812 | There are four different ways to express a ``font name''. The first | 821 | There are four different ways to express a ``font name''. The first |
| @@ -834,20 +843,6 @@ DejaVu Sans Mono:bold:italic | |||
| 834 | Monospace-12:weight=bold:slant=italic | 843 | Monospace-12:weight=bold:slant=italic |
| 835 | @end smallexample | 844 | @end smallexample |
| 836 | 845 | ||
| 837 | @noindent | ||
| 838 | When passing a font specification to Emacs on the command line, you | ||
| 839 | may need to ``quote'' it, by enclosing it in quotation marks, if it | ||
| 840 | contains characters that the shell treats specially (e.g. spaces). | ||
| 841 | For example: | ||
| 842 | |||
| 843 | @smallexample | ||
| 844 | emacs -fn "DejaVu Sans Mono-12" | ||
| 845 | @end smallexample | ||
| 846 | |||
| 847 | @noindent | ||
| 848 | When specifying a font in your X resources file, you should not quote | ||
| 849 | it. | ||
| 850 | |||
| 851 | The second way to specify a font is to use the @dfn{GTK format}. | 846 | The second way to specify a font is to use the @dfn{GTK format}. |
| 852 | This has the syntax | 847 | This has the syntax |
| 853 | 848 | ||