aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-12-09 14:27:56 +0000
committerChong Yidong2008-12-09 14:27:56 +0000
commit001b5dc95fac8839391dcfd4f2a1d5a7955299a8 (patch)
treef7e3659ffc9e00fc54d3a0ff0aaafa88384a2504
parentc5ca6cd09d90dcf47665eb4b92fd1f5953817006 (diff)
downloademacs-001b5dc95fac8839391dcfd4f2a1d5a7955299a8.tar.gz
emacs-001b5dc95fac8839391dcfd4f2a1d5a7955299a8.zip
(Font X): Move discussion of quoting to top.
-rw-r--r--doc/emacs/cmdargs.texi27
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
793Use @var{font} as the default font. 793Use @var{font} as the default font.
794@end table 794@end table
795 795
796When passing a font specification to Emacs on the command line, you
797may need to ``quote'' it, by enclosing it in quotation marks, if it
798contains characters that the shell treats specially (e.g. spaces).
799Here is an example:
800
801@smallexample
802emacs -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
800file named @file{.Xdefaults} or @file{.Xresources} in your home 808file named @file{.Xdefaults} or @file{.Xresources} in your home
801directory), by adding a line like this: 809directory), by adding a line like this:
@@ -806,7 +814,8 @@ emacs.font: @var{font}
806 814
807@noindent 815@noindent
808You must restart X, or use the @command{xrdb} command, for the X 816You must restart X, or use the @command{xrdb} command, for the X
809resources file to take effect. @xref{Resources}. 817resources file to take effect. @xref{Resources}. When specifying a
818font 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
834Monospace-12:weight=bold:slant=italic 843Monospace-12:weight=bold:slant=italic
835@end smallexample 844@end smallexample
836 845
837@noindent
838When passing a font specification to Emacs on the command line, you
839may need to ``quote'' it, by enclosing it in quotation marks, if it
840contains characters that the shell treats specially (e.g. spaces).
841For example:
842
843@smallexample
844emacs -fn "DejaVu Sans Mono-12"
845@end smallexample
846
847@noindent
848When specifying a font in your X resources file, you should not quote
849it.
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}.
852This has the syntax 847This has the syntax
853 848