From: Chong Yidong Date: Tue, 9 Dec 2008 14:27:56 +0000 (+0000) Subject: (Font X): Move discussion of quoting to top. X-Git-Tag: emacs-pretest-23.0.90~1216 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=001b5dc95fac8839391dcfd4f2a1d5a7955299a8;p=emacs.git (Font X): Move discussion of quoting to top. --- 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 Use @var{font} as the default font. @end table +When passing a font specification to Emacs on the command line, you +may need to ``quote'' it, by enclosing it in quotation marks, if it +contains characters that the shell treats specially (e.g. spaces). +Here is an example: + +@smallexample +emacs -fn "DejaVu Sans Mono-12" +@end smallexample + @cindex X defaults file @cindex X resources file - You can also specify the font using your X resources file (usually a file named @file{.Xdefaults} or @file{.Xresources} in your home directory), by adding a line like this: @@ -806,7 +814,8 @@ emacs.font: @var{font} @noindent You must restart X, or use the @command{xrdb} command, for the X -resources file to take effect. @xref{Resources}. +resources file to take effect. @xref{Resources}. When specifying a +font in your X resources file, you should not quote it. @cindex fontconfig There are four different ways to express a ``font name''. The first @@ -834,20 +843,6 @@ DejaVu Sans Mono:bold:italic Monospace-12:weight=bold:slant=italic @end smallexample -@noindent -When passing a font specification to Emacs on the command line, you -may need to ``quote'' it, by enclosing it in quotation marks, if it -contains characters that the shell treats specially (e.g. spaces). -For example: - -@smallexample -emacs -fn "DejaVu Sans Mono-12" -@end smallexample - -@noindent -When specifying a font in your X resources file, you should not quote -it. - The second way to specify a font is to use the @dfn{GTK format}. This has the syntax