Mercurial > emacs
changeset 100286:8506ece097a2
(Font X): Move discussion of quoting to top.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 09 Dec 2008 14:27:56 +0000 |
parents | 77f456ab3fb3 |
children | 7dc87d36d23b |
files | doc/emacs/cmdargs.texi |
diffstat | 1 files changed, 11 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/emacs/cmdargs.texi Tue Dec 09 14:27:50 2008 +0000 +++ b/doc/emacs/cmdargs.texi Tue Dec 09 14:27:56 2008 +0000 @@ -793,9 +793,17 @@ 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 @@ @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 @@ 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