Add information about building with Cygwin Make 3.80.
[bpt/emacs.git] / man / xresources.texi
CommitLineData
94249313 1@c This is part of the Emacs manual.
b65d8176 2@c Copyright (C) 1987, 1993, 1994, 1995, 1997, 2001, 2002, 2003,
4e6835db 3@c 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
94249313 4@c See file emacs.texi for copying conditions.
b4e112e7 5@node X Resources, Antinews, Emacs Invocation, Top
82f6e63d 6@appendix X Options and Resources
94249313 7
82f6e63d 8 You can customize some X-related aspects of Emacs behavior using X
8c1691d8
JR
9resources, as is usual for programs that use X. On MS-Windows, you
10can customize some of the same aspects using the system registry.
e8fd09cc 11@xref{MS-Windows Registry}. Likewise, Emacs on MacOS Carbon emulates X
2d488bd1 12resources using the Preferences system. @xref{Mac Environment Variables}.
10214524 13
c6aea8f8 14 When Emacs is built using an ``X toolkit'', such as Lucid or
e8fd09cc
JD
15LessTif, you need to use X resources to customize the appearance of
16the widgets, including the menu-bar, scroll-bar, and dialog boxes.
17This is because the libraries that implement these don't provide for
10214524 18customization through Emacs. GTK+ widgets use a separate system of
e8fd09cc
JD
19@ifnottex
20``GTK resources'', which we will also describe.
21@end ifnottex
22@iftex
23``GTK resources.'' In this chapter we describe the most commonly used
24resource specifications. For full documentation, see the online
25manual.
26
27@c Add xref for LessTif/Motif menu resources.
28@end iftex
29
405f4489
RS
30
31@menu
82f6e63d
RS
32* Resources:: Using X resources with Emacs (in general).
33* Table of Resources:: Table of specific X resources that affect Emacs.
34* Face Resources:: X resources for customizing faces.
405f4489
RS
35* Lucid Resources:: X resources for Lucid menus.
36* LessTif Resources:: X resources for LessTif and Motif menus.
488dd4c4 37* GTK resources:: Resources for GTK widgets.
405f4489
RS
38@end menu
39
113c2ede 40@node Resources
94249313
RS
41@appendixsec X Resources
42@cindex resources
4fc31427
RS
43@cindex X resources
44@cindex @file{~/.Xdefaults} file
45@cindex @file{~/.Xresources} file
94249313 46
9b7e4229
RS
47 Programs running under the X Window System organize their user
48options under a hierarchy of classes and resources. You can specify
49default values for these options in your X resources file, usually
02e740dc
DL
50named @file{~/.Xdefaults} or @file{~/.Xresources}.
51If changes in @file{~/.Xdefaults} do not
9b7e4229
RS
52take effect, it is because your X server stores its own list of
53resources; to update them, use the shell command @command{xrdb}---for
54instance, @samp{xrdb ~/.Xdefaults}.
94249313
RS
55
56 Each line in the file specifies a value for one option or for a
57collection of related options, for one program or for several programs
58(optionally even for all programs).
59
60@cindex Registry (MS-Windows)
df7593dd
KB
61 MS-Windows systems do not support @file{~/.Xdefaults} files, so
62instead Emacs compiled for Windows looks for X resources in the
63Windows Registry, first under the key
64@samp{HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs} and then under the key
65@samp{HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs}. The menu and scroll
66bars are native widgets on MS-Windows, so they are only customizable
67via the system-wide settings in the Display Control Panel. You can
68also set resources using the @samp{-xrm} command line option (see
69below.)
94249313 70
e8fd09cc
JD
71@iftex
72 Applications such as Emacs look for resources with specific names
73and their particular meanings. Case distinctions are significant in
74these names. Each resource specification in @file{~/.Xdefaults}
75states the name of the program and the name of the resource. For
76Emacs, the program name is @samp{Emacs}. It looks like this:
c6aea8f8 77
e8fd09cc
JD
78@example
79Emacs.borderWidth: 2
80@end example
81@end iftex
82@ifnottex
94249313
RS
83 Programs define named resources with particular meanings. They also
84define how to group resources into named classes. For instance, in
85Emacs, the @samp{internalBorder} resource controls the width of the
86internal border, and the @samp{borderWidth} resource controls the width
87of the external border. Both of these resources are part of the
88@samp{BorderWidth} class. Case distinctions are significant in these
89names.
90
10214524
RS
91 Every resource definition is associated with a specific program
92name---the name of the executable file that you ran. For Emacs, that
93is normally @samp{emacs}. To specify a definition for all instances
94of Emacs, regardless of their names, use @samp{Emacs}.
95
94249313
RS
96 In @file{~/.Xdefaults}, you can specify a value for a single resource
97on one line, like this:
98
99@example
100emacs.borderWidth: 2
101@end example
102
103@noindent
104Or you can use a class name to specify the same value for all resources
105in that class. Here's an example:
106
107@example
108emacs.BorderWidth: 2
109@end example
110
111 If you specify a value for a class, it becomes the default for all
112resources in that class. You can specify values for individual
113resources as well; these override the class value, for those particular
114resources. Thus, this example specifies 2 as the default width for all
115borders, but overrides this value with 4 for the external border:
116
117@example
118emacs.BorderWidth: 2
119emacs.borderWidth: 4
120@end example
e8fd09cc 121@end ifnottex
94249313
RS
122
123 The order in which the lines appear in the file does not matter.
124Also, command-line options always override the X resources file.
e8fd09cc
JD
125
126@ifnottex
10214524
RS
127Here is a list of X command-line options and their corresponding
128resource names.
94249313
RS
129
130@table @samp
131@item -name @var{name}
132@opindex --name
133@itemx --name=@var{name}
134@cindex resource name, command-line argument
135Use @var{name} as the resource name (and the title) for the initial
136Emacs frame. This option does not affect subsequent frames, but Lisp
137programs can specify frame names when they create frames.
138
139If you don't specify this option, the default is to use the Emacs
140executable's name as the resource name.
141
142@item -xrm @var{resource-values}
143@opindex --xrm
144@itemx --xrm=@var{resource-values}
145@cindex resource values, command-line argument
146Specify X resource values for this Emacs job (see below).
147@end table
148
149 For consistency, @samp{-name} also specifies the name to use for
150other resource values that do not belong to any particular frame.
151
152 The resources that name Emacs invocations also belong to a class; its
153name is @samp{Emacs}. If you write @samp{Emacs} instead of
154@samp{emacs}, the resource applies to all frames in all Emacs jobs,
155regardless of frame titles and regardless of the name of the executable
156file. Here is an example:
157
158@example
159Emacs.BorderWidth: 2
160Emacs.borderWidth: 4
161@end example
162
163 You can specify a string of additional resource values for Emacs to
164use with the command line option @samp{-xrm @var{resources}}. The text
165@var{resources} should have the same format that you would use inside a file
166of X resources. To include multiple resource specifications in
167@var{resources}, put a newline between them, just as you would in a file.
168You can also use @samp{#include "@var{filename}"} to include a file full
169of resource specifications. Resource values specified with @samp{-xrm}
170take precedence over all other resource specifications.
171
82f6e63d
RS
172 One way to experiment with the effect of different resource settings
173is to use the @code{editres} program. Select @samp{Get Tree} from the
e8fd09cc
JD
174@end ifnottex
175@iftex
176 You can experiment with the effect of different resource settings
177with the @code{editres} program. Select @samp{Get Tree} from the
178@end iftex
82f6e63d
RS
179@samp{Commands} menu, then click on an Emacs frame. This will display
180a tree showing the structure of X toolkit widgets used in an Emacs
181frame. Select one of them, such as @samp{menubar}, then select
182@samp{Show Resource Box} from the @samp{Commands} menu. This displays
e8fd09cc
JD
183a list of all the meaningful X resources for that widget, and allows
184you to edit them. Changes take effect when you click on the
185@samp{Apply} button. (See the @code{editres} man page for more
186details.)
82f6e63d
RS
187
188@node Table of Resources
189@appendixsec Table of X Resources for Emacs
190
191 This table lists the resource names that designate options for
9b7e4229
RS
192Emacs, not counting those for the appearance of the menu bar, each
193with the class that it belongs to:
94249313
RS
194
195@table @asis
196@item @code{background} (class @code{Background})
197Background color name.
198
e8fd09cc 199@ifnottex
94249313
RS
200@item @code{bitmapIcon} (class @code{BitmapIcon})
201Use a bitmap icon (a picture of a gnu) if @samp{on}, let the window
202manager choose an icon if @samp{off}.
e8fd09cc 203@end ifnottex
94249313
RS
204
205@item @code{borderColor} (class @code{BorderColor})
206Color name for the external border.
207
e8fd09cc 208@ifnottex
94249313
RS
209@item @code{borderWidth} (class @code{BorderWidth})
210Width in pixels of the external border.
e8fd09cc 211@end ifnottex
94249313
RS
212
213@item @code{cursorColor} (class @code{Foreground})
214Color name for text cursor (point).
215
e8fd09cc 216@ifnottex
ed0fb1f1
JD
217@item @code{cursorBlink} (class @code{CursorBlink})
218Specifies whether to make the cursor blink. The default is @samp{on}. Use
219@samp{off} or @samp{false} to turn cursor blinking off.
e8fd09cc 220@end ifnottex
ed0fb1f1 221
94249313 222@item @code{font} (class @code{Font})
e8fd09cc 223Font name (or fontset name, @pxref{Fontsets}) for @code{default} font.
94249313
RS
224
225@item @code{foreground} (class @code{Foreground})
226Color name for text.
227
228@item @code{geometry} (class @code{Geometry})
229Window size and position. Be careful not to specify this resource as
230@samp{emacs*geometry}, because that may affect individual menus as well
231as the Emacs frame itself.
232
233If this resource specifies a position, that position applies only to the
234initial Emacs frame (or, in the case of a resource for a specific frame
235name, only that frame). However, the size, if specified here, applies to
236all frames.
237
e8fd09cc 238@ifnottex
e1556251 239@item @code{fullscreen} (class @code{Fullscreen})
cf225974
EZ
240The desired fullscreen size. The value can be one of @code{fullboth},
241@code{fullwidth} or @code{fullheight}, which correspond to
242the command-line options @samp{-fs}, @samp{-fw}, and @samp{-fh}
243(@pxref{Window Size X}).
e1556251 244
e8fd09cc
JD
245Note that this applies to the initial frame only.
246@end ifnottex
e1556251 247
94249313
RS
248@item @code{iconName} (class @code{Title})
249Name to display in the icon.
250
251@item @code{internalBorder} (class @code{BorderWidth})
252Width in pixels of the internal border.
253
254@item @code{lineSpacing} (class @code{LineSpacing})
255@cindex line spacing
256@cindex leading
257Additional space (@dfn{leading}) between lines, in pixels.
258
259@item @code{menuBar} (class @code{MenuBar})
d90a6f50 260@cindex menu bar
e8fd09cc
JD
261Give frames menu bars if @samp{on}; don't have menu bars if @samp{off}.
262@ifnottex
263@xref{Lucid Resources}, and @ref{LessTif Resources},
264@end ifnottex
265@iftex
266@xref{Lucid Resources},
267@end iftex
268for how to control the appearance of the menu bar if you have one.
94249313 269
e8fd09cc 270@ifnottex
94249313
RS
271@item @code{minibuffer} (class @code{Minibuffer})
272If @samp{none}, don't make a minibuffer in this frame.
273It will use a separate minibuffer frame instead.
274
275@item @code{paneFont} (class @code{Font})
276@cindex font for menus
277Font name for menu pane titles, in non-toolkit versions of Emacs.
e8fd09cc 278@end ifnottex
94249313
RS
279
280@item @code{pointerColor} (class @code{Foreground})
281Color of the mouse cursor.
282
e8fd09cc 283@ifnottex
94249313
RS
284@item @code{privateColormap} (class @code{PrivateColormap})
285If @samp{on}, use a private color map, in the case where the ``default
286visual'' of class PseudoColor and Emacs is using it.
94249313
RS
287
288@item @code{reverseVideo} (class @code{ReverseVideo})
289Switch foreground and background default colors if @samp{on}, use colors as
290specified if @samp{off}.
e8fd09cc 291@end ifnottex
94249313
RS
292
293@item @code{screenGamma} (class @code{ScreenGamma})
294@cindex gamma correction
295Gamma correction for colors, equivalent to the frame parameter
296@code{screen-gamma}.
297
73271565
JD
298@item @code{scrollBarWidth} (class @code{ScrollBarWidth})
299@cindex scrollbar width
300The scroll bar width in pixels, equivalent to the frame parameter
301@code{scroll-bar-width}.
302
e8fd09cc 303@ifnottex
02e740dc 304@item @code{selectionFont} (class @code{SelectionFont})
94249313
RS
305Font name for pop-up menu items, in non-toolkit versions of Emacs. (For
306toolkit versions, see @ref{Lucid Resources}, also see @ref{LessTif
307Resources}.)
308
02e740dc
DL
309@item @code{selectionTimeout} (class @code{SelectionTimeout})
310Number of milliseconds to wait for a selection reply.
311If the selection owner doesn't reply in this time, we give up.
312A value of 0 means wait as long as necessary.
313
94249313
RS
314@item @code{synchronous} (class @code{Synchronous})
315@cindex debugging X problems
316@cindex synchronous X mode
317Run Emacs in synchronous mode if @samp{on}. Synchronous mode is
318useful for debugging X problems.
e8fd09cc 319@end ifnottex
94249313
RS
320
321@item @code{title} (class @code{Title})
322Name to display in the title bar of the initial Emacs frame.
323
4fc31427 324@item @code{toolBar} (class @code{ToolBar})
d90a6f50 325@cindex tool bar
4fc31427
RS
326Number of lines to reserve for the tool bar. A zero value suppresses
327the tool bar. If the value is non-zero and
328@code{auto-resize-tool-bars} is non-@code{nil}, the tool bar's size
329will be changed automatically so that all tool bar items are visible.
c6aea8f8
KS
330 If the value of @code{auto-resize-tool-bars} is @code{grow-only},
331the tool bar expands automatically, but does not contract automatically.
332To contract the tool bar, you must redraw the frame by entering @kbd{C-l}.
4fc31427 333
d90a6f50
DL
334@item @code{useXIM} (class @code{UseXIM})
335@cindex XIM
336@cindex X input methods
337@cindex input methods, X
338Turn off use of X input methods (XIM) if @samp{false} or @samp{off}.
339This is only relevant if your Emacs is actually built with XIM
340support. It is potentially useful to turn off XIM for efficiency,
341especially slow X client/server links.
342
94249313
RS
343@item @code{verticalScrollBars} (class @code{ScrollBars})
344Give frames scroll bars if @samp{on}; don't have scroll bars if
345@samp{off}.
10214524 346
e8fd09cc 347@ifnottex
10214524
RS
348@item @code{visualClass} (class @code{VisualClass})
349Specify the ``visual'' that X should use. This tells X how to handle
350colors.
351
352The value should start with one of @samp{TrueColor},
353@samp{PseudoColor}, @samp{DirectColor}, @samp{StaticColor},
354@samp{GrayScale}, and @samp{StaticGray}, followed by
355@samp{-@var{depth}}, where @var{depth} is the number of color planes.
356Most terminals only allow a few ``visuals,'' and the @samp{dpyinfo}
357program outputs information saying which ones.
e8fd09cc 358@end ifnottex
94249313
RS
359@end table
360
82f6e63d
RS
361@node Face Resources
362@appendixsec X Resources for Faces
363
6bdbc023 364 You can use resources to customize the appearance of particular
82f6e63d 365faces (@pxref{Faces}):
94249313
RS
366
367@table @code
94249313
RS
368@item @var{face}.attributeForeground
369Foreground color for face @var{face}.
370@item @var{face}.attributeBackground
371Background color for face @var{face}.
372@item @var{face}.attributeUnderline
373Underline flag for face @var{face}. Use @samp{on} or @samp{true} for
374yes.
6bdbc023
RS
375@item @var{face}.attributeStrikeThrough
376@itemx @var{face}.attributeOverline
377@itemx @var{face}.attributeBox
378@itemx @var{face}.attributeInverse
379Likewise, for other boolean font attributes.
380@item @var{face}.attributeStipple
381The name of a pixmap data file to use for the stipple pattern, or
382@code{false} to not use stipple for the face @var{face}.
383@item @var{face}.attributeBackgroundPixmap
384The background pixmap for the face @var{face}. Should be a name of a
385pixmap file or @code{false}.
386@item @var{face}.attributeFont
387Font name (full XFD name or valid X abbreviation) for face @var{face}.
388Instead of this, you can specify the font through separate attributes.
389@end table
390
391 Instead of using @code{attributeFont} to specify a font name, you can
392select a font through these separate attributes:
393
394@table @code
94249313
RS
395@item @var{face}.attributeFamily
396Font family for face @var{face}.
94249313
RS
397@item @var{face}.attributeHeight
398Height of the font to use for face @var{face}: either an integer
399specifying the height in units of 1/10@dmn{pt}, or a floating point
400number that specifies a scale factor to scale the underlying face's
401default font, or a function to be called with the default height which
402will return a new height.
6bdbc023
RS
403@item @var{face}.attributeWidth
404@itemx @var{face}.attributeWeight
405@itemx @var{face}.attributeSlant
406Each of these resources corresponds to a like-named font attribute,
407and you write the resource value the same as the symbol you would use
408for the font attribute value.
94249313 409@item @var{face}.attributeBold
6bdbc023
RS
410Bold flag for face @var{face}---instead of @code{attributeWeight}. Use @samp{on} or @samp{true} for
411yes.
94249313 412@item @var{face}.attributeItalic
6bdbc023 413Italic flag for face @var{face}---instead of @code{attributeSlant}.
94249313
RS
414@end table
415
416@node Lucid Resources
417@appendixsec Lucid Menu X Resources
418@cindex Menu X Resources (Lucid widgets)
419@cindex Lucid Widget X Resources
420
e8fd09cc 421@ifnottex
94249313
RS
422 If the Emacs installed at your site was built to use the X toolkit
423with the Lucid menu widgets, then the menu bar is a separate widget and
424has its own resources. The resource names contain @samp{pane.menubar}
425(following, as always, the name of the Emacs invocation, or @samp{Emacs},
426which stands for all Emacs invocations). Specify them like this:
427
428@example
429Emacs.pane.menubar.@var{resource}: @var{value}
430@end example
431
432@noindent
433For example, to specify the font @samp{8x16} for the menu-bar items,
434write this:
e8fd09cc
JD
435@end ifnottex
436@iftex
437 If the Emacs installed at your site was built to use the X toolkit
438with the Lucid menu widgets, then the menu bar is a separate widget
439and has its own resources. The resource specifications start with
440@samp{Emacs.pane.menubar}---for instance, to specify the font
441@samp{8x16} for the menu-bar items, write this:
442@end iftex
94249313
RS
443
444@example
445Emacs.pane.menubar.font: 8x16
446@end example
447
448@noindent
449Resources for @emph{non-menubar} toolkit pop-up menus have
c6aea8f8 450@samp{menu*} instead of @samp{pane.menubar}. For example, to specify
e8fd09cc 451the font @samp{8x16} for the pop-up menu items, write this:
94249313
RS
452
453@example
454Emacs.menu*.font: 8x16
455@end example
456
457@noindent
e8fd09cc 458For dialog boxes, use @samp{dialog*}:
94249313
RS
459
460@example
461Emacs.dialog*.font: 8x16
462@end example
463
0d0e15c3 464@noindent
e8fd09cc
JD
465The Lucid menus can display multilingual text in your locale. For
466more information about fontsets see the man page for
467@code{XCreateFontSet}. To enable multilingual menu text you specify a
468@code{fontSet} resource instead of the font resource. If both
469@code{font} and @code{fontSet} resources are specified, the
470@code{fontSet} resource is used.
471
472 Thus, to specify @samp{-*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*}
473for both the popup and menu bar menus, write this:
0d0e15c3
JD
474
475@example
e8fd09cc 476Emacs*menu*fontSet: -*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*
0d0e15c3
JD
477@end example
478
94249313 479@noindent
e8fd09cc
JD
480The @samp{*menu*} as a wildcard matches @samp{pane.menubar} and
481@samp{menu@dots{}}.
482
94249313
RS
483Experience shows that on some systems you may need to add
484@samp{shell.}@: before the @samp{pane.menubar} or @samp{menu*}. On
e8fd09cc
JD
485some other systems, you must not add @samp{shell.}. The generic wildcard
486approach should work on both kinds of systems.
94249313
RS
487
488 Here is a list of the specific resources for menu bars and pop-up menus:
489
490@table @code
491@item font
492Font for menu item text.
0d0e15c3
JD
493@item fontSet
494Fontset for menu item text.
94249313
RS
495@item foreground
496Color of the foreground.
497@item background
498Color of the background.
499@item buttonForeground
500In the menu bar, the color of the foreground for a selected item.
e8fd09cc 501@ifnottex
94249313
RS
502@item horizontalSpacing
503Horizontal spacing in pixels between items. Default is 3.
504@item verticalSpacing
f2daf7e9 505Vertical spacing in pixels between items. Default is 2.
94249313
RS
506@item arrowSpacing
507Horizontal spacing between the arrow (which indicates a submenu) and
508the associated text. Default is 10.
509@item shadowThickness
f2daf7e9
LT
510Thickness of shadow line around the widget. Default is 1.
511
512Also determines the thickness of shadow lines around other objects,
513for instance 3D buttons and arrows. If you have the impression that
514the arrows in the menus do not stand out clearly enough or that the
515difference between ``in'' and ``out'' buttons is difficult to see, set
516this to 2. If you have no problems with visibility, the default
517probably looks better. The background color may also have some effect
518on the contrast.
e8fd09cc 519@end ifnottex
94249313 520@item margin
f2daf7e9 521The margin of the menu bar, in characters. Default is 1.
94249313
RS
522@end table
523
e8fd09cc 524@ifnottex
94249313
RS
525@node LessTif Resources
526@appendixsec LessTif Menu X Resources
527@cindex Menu X Resources (LessTif widgets)
528@cindex LessTif Widget X Resources
529
530 If the Emacs installed at your site was built to use the X toolkit
531with the LessTif or Motif widgets, then the menu bar, the dialog
532boxes, the pop-up menus, and the file-selection box are separate
533widgets and have their own resources.
534
535 The resource names for the menu bar contain @samp{pane.menubar}
536(following, as always, the name of the Emacs invocation, or
537@samp{Emacs}, which stands for all Emacs invocations). Specify them
538like this:
539
540@smallexample
541Emacs.pane.menubar.@var{subwidget}.@var{resource}: @var{value}
542@end smallexample
543
544 Each individual string in the menu bar is a subwidget; the subwidget's
545name is the same as the menu item string. For example, the word
546@samp{File} in the menu bar is part of a subwidget named
547@samp{emacs.pane.menubar.File}. Most likely, you want to specify the
548same resources for the whole menu bar. To do this, use @samp{*} instead
549of a specific subwidget name. For example, to specify the font
550@samp{8x16} for the menu-bar items, write this:
551
552@smallexample
553Emacs.pane.menubar.*.fontList: 8x16
554@end smallexample
555
556@noindent
557This also specifies the resource value for submenus.
558
559 Each item in a submenu in the menu bar also has its own name for X
560resources; for example, the @samp{File} submenu has an item named
561@samp{Save (current buffer)}. A resource specification for a submenu
562item looks like this:
563
564@smallexample
565Emacs.pane.menubar.popup_*.@var{menu}.@var{item}.@var{resource}: @var{value}
566@end smallexample
567
568@noindent
569For example, here's how to specify the font for the @samp{Save (current
570buffer)} item:
571
572@smallexample
573Emacs.pane.menubar.popup_*.File.Save (current buffer).fontList: 8x16
574@end smallexample
575
576@noindent
577For an item in a second-level submenu, such as @samp{Complete Word}
578under @samp{Spell Checking} under @samp{Tools}, the resource fits this
579template:
580
581@smallexample
582Emacs.pane.menubar.popup_*.popup_*.@var{menu}.@var{resource}: @var{value}
583@end smallexample
584
585@noindent
586For example,
587
588@smallexample
589Emacs.pane.menubar.popup_*.popup_*.Spell Checking.Complete Word: @var{value}
590@end smallexample
591
592@noindent
593(This should be one long line.)
177c0ea7 594
94249313
RS
595 It's impossible to specify a resource for all the menu-bar items
596without also specifying it for the submenus as well. So if you want the
597submenu items to look different from the menu bar itself, you must ask
598for that in two steps. First, specify the resource for all of them;
599then, override the value for submenus alone. Here is an example:
600
601@smallexample
602Emacs.pane.menubar.*.fontList: 8x16
603Emacs.pane.menubar.popup_*.fontList: 8x16
604@end smallexample
605
606@noindent
607For LessTif pop-up menus, use @samp{menu*} instead of
608@samp{pane.menubar}. For example, to specify the font @samp{8x16} for
609the pop-up menu items, write this:
610
611@smallexample
612Emacs.menu*.fontList: 8x16
613@end smallexample
614
615@noindent
616For LessTif dialog boxes, use @samp{dialog} instead of @samp{menu}:
617
618@example
619Emacs.dialog*.fontList: 8x16
620Emacs.dialog*.foreground: hotpink
621@end example
622
623To specify resources for the LessTif file-selection box, use
624@samp{fsb*}, like this:
625
626@example
627Emacs.fsb*.fontList: 8x16
628@end example
629
630@iftex
631@medbreak
632@end iftex
633 Here is a list of the specific resources for LessTif menu bars and
634pop-up menus:
635
636@table @code
637@item armColor
638The color to show in an armed button.
639@item fontList
640The font to use.
641@item marginBottom
642@itemx marginHeight
643@itemx marginLeft
644@itemx marginRight
645@itemx marginTop
646@itemx marginWidth
647Amount of space to leave around the item, within the border.
648@item borderWidth
649The width of the border around the menu item, on all sides.
650@item shadowThickness
651The width of the border shadow.
652@item bottomShadowColor
653The color for the border shadow, on the bottom and the right.
654@item topShadowColor
655The color for the border shadow, on the top and the left.
656@end table
e8fd09cc 657@end ifnottex
488dd4c4
JD
658
659
660@node GTK resources
661@appendixsec GTK resources
e8fd09cc
JD
662@iftex
663 The most common way to customize the GTK widgets Emacs uses (menus, dialogs
664tool bars and scroll bars) is by choosing an appropriate theme, for example
665with the GNOME theme selector. You can also do Emacs specific customization
666by inserting GTK style directives in the file @file{~/.emacs.d/gtkrc}. Some GTK
667themes ignore customizations in @file{~/.emacs.d/gtkrc} so not everything
668works with all themes. To customize Emacs font, background, faces, etc., use
669the normal X resources (@pxref{Resources}). We will present some examples of
670customizations here, but for a more detailed description, see the online manual
671
672 The first example is just one line. It changes the font on all GTK widgets
673to courier with size 12:
674
675@smallexample
676gtk-font-name = "courier 12"
677@end smallexample
678
679 The thing to note is that the font name is not an X font name, like
680-*-helvetica-medium-r-*--*-120-*-*-*-*-*-*, but a Pango font name. A Pango
681font name is basically of the format "family style size", where the style
682is optional as in the case above. A name with a style could be for example:
683
684@smallexample
685gtk-font-name = "helvetica bold 10"
686@end smallexample
687
688 To customize widgets you first define a style and then apply the style to
689the widgets. Here is an example that sets the font for menus, but not
690for other widgets:
691
692@smallexample
693# @r{Define the style @samp{menufont}.}
694style "menufont"
695@{
696 font_name = "helvetica bold 14" # This is a Pango font name
697@}
698
699# @r{Specify that widget type @samp{*emacs-menuitem*} uses @samp{menufont}.}
700widget "*emacs-menuitem*" style "menufont"
701@end smallexample
702
703The widget name in this example contains wildcards, so the style will be
704applied to all widgets that match "*emacs-menuitem*". The widgets are
705named by the way they are contained, from the outer widget to the inner widget.
706So to apply the style "my_style" (not shown) with the full, absolute name, for
707the menubar and the scroll bar in Emacs we use:
708
709@smallexample
710widget "Emacs.pane.menubar" style "my_style"
711widget "Emacs.pane.emacs.verticalScrollBar" style "my_style"
712@end smallexample
c6aea8f8 713
e8fd09cc
JD
714But to avoid having to type it all, wildcards are often used. @samp{*}
715matches zero or more characters and @samp{?} matches one character. So "*"
716matches all widgets.
717
718 Each widget has a class (for example GtkMenuItem) and a name (emacs-menuitem).
719You can assign styles by name or by class. In this example we have used the
720class:
721
722@smallexample
723style "menufont"
724@{
725 font_name = "helvetica bold 14"
726@}
727
728widget_class "*GtkMenuBar" style "menufont"
729@end smallexample
730
731@noindent
732The names and classes for the GTK widgets Emacs uses are:
733
734@multitable {@code{verticalScrollbar plus}} {@code{GtkFileSelection} and some}
735@item @code{emacs-filedialog}
736@tab @code{GtkFileSelection}
737@item @code{emacs-dialog}
738@tab @code{GtkDialog}
739@item @code{Emacs}
740@tab @code{GtkWindow}
741@item @code{pane}
742@tab @code{GtkVHbox}
743@item @code{emacs}
744@tab @code{GtkFixed}
745@item @code{verticalScrollBar}
746@tab @code{GtkVScrollbar}
747@item @code{emacs-toolbar}
748@tab @code{GtkToolbar}
749@item @code{menubar}
750@tab @code{GtkMenuBar}
751@item @code{emacs-menuitem}
752@tab anything in menus
753@end multitable
754
755 GTK absolute names are quite strange when it comes to menus
756and dialogs. The names do not start with @samp{Emacs}, as they are
757free-standing windows and not contained (in the GTK sense) by the
758Emacs GtkWindow. To customize the dialogs and menus, use wildcards like this:
759
760@smallexample
761widget "*emacs-dialog*" style "my_dialog_style"
762widget "*emacs-filedialog* style "my_file_style"
763widget "*emacs-menuitem* style "my_menu_style"
764@end smallexample
765
766 If you specify a customization in @file{~/.emacs.d/gtkrc}, then it
767automatically applies only to Emacs, since other programs don't read
768that file. For example, the drop down menu in the file dialog can not
769be customized by any absolute widget name, only by an absolute class
770name. This is because the widgets in the drop down menu do not
771have names and the menu is not contained in the Emacs GtkWindow. To
772have all menus in Emacs look the same, use this in
773@file{~/.emacs.d/gtkrc}:
774
775@smallexample
776widget_class "*Menu*" style "my_menu_style"
777@end smallexample
778
779 Here is a more elaborate example, showing how to change the parts of
780the scroll bar:
781
782@smallexample
783style "scroll"
784@{
785 fg[NORMAL] = "red"@ @ @ @ @ # @r{The arrow color.}
786 bg[NORMAL] = "yellow"@ @ # @r{The thumb and background around the arrow.}
787 bg[ACTIVE] = "blue"@ @ @ @ # @r{The trough color.}
788 bg[PRELIGHT] = "white"@ # @r{The thumb color when the mouse is over it.}
789@}
790
791widget "*verticalScrollBar*" style "scroll"
792@end smallexample
793@end iftex
794
795@ifnottex
488dd4c4
JD
796@cindex GTK resources and customization
797@cindex resource files for GTK
798@cindex @file{~/.gtkrc-2.0} file
799@cindex @file{~/.emacs.d/gtkrc} file
800
35d3955b 801 If Emacs was built to use the GTK widget set, then the menu bar, tool bar,
10214524
RS
802scroll bar and the dialogs are customized with the standard GTK
803customization file, @file{~/.gtkrc-2.0}, or with the Emacs specific
804file @file{~/.emacs.d/gtkrc}. We recommend that you use
805@file{~/.emacs.d/gtkrc} for customizations, since @file{~/.gtkrc-2.0}
806seems to be ignored when running GConf with GNOME. These files apply
807only to GTK widget features. To customize Emacs font, background,
808faces, etc., use the normal X resources (@pxref{Resources}).
488dd4c4 809
9543c58c 810 Some GTK themes override these mechanisms, which means that using
10214524 811these mechanisms will not work to customize them.
583a618e 812
10214524
RS
813 In these files you first define a style and say what it means; then
814you specify to apply the style to various widget types (@pxref{GTK
815widget names}). Here is an example of how to change the font for
816Emacs menus:
488dd4c4
JD
817
818@smallexample
35d3955b 819# @r{Define the style @samp{menufont}.}
488dd4c4
JD
820style "menufont"
821@{
822 font_name = "helvetica bold 14" # This is a Pango font name
823@}
824
35d3955b 825# @r{Specify that widget type @samp{*emacs-menuitem*} uses @samp{menufont}.}
488dd4c4 826widget "*emacs-menuitem*" style "menufont"
583a618e
JD
827@end smallexample
828
829 Here is a more elaborate example, showing how to change the parts of
830the scroll bar:
9543c58c 831
583a618e
JD
832@smallexample
833style "scroll"
834@{
10214524
RS
835 fg[NORMAL] = "red"@ @ @ @ @ # @r{The arrow color.}
836 bg[NORMAL] = "yellow"@ @ # @r{The thumb and background around the arrow.}
837 bg[ACTIVE] = "blue"@ @ @ @ # @r{The trough color.}
838 bg[PRELIGHT] = "white"@ # @r{The thumb color when the mouse is over it.}
583a618e
JD
839@}
840
841widget "*verticalScrollBar*" style "scroll"
488dd4c4
JD
842@end smallexample
843
2d21bf9e
EZ
844 There are also parameters that affect GTK as a whole. For example,
845the property @code{gtk-font-name} sets the default font for GTK. You
846must use Pango font names (@pxref{GTK styles}). A GTK resources file
847that just sets a default font looks like this:
488dd4c4
JD
848
849@smallexample
850gtk-font-name = "courier 12"
851@end smallexample
852
10214524
RS
853 The GTK resources file is fully described in the GTK API document.
854This can be found in
855@file{@var{prefix}/share/gtk-doc/html/gtk/gtk-resource-files.html},
856where @file{prefix} is the directory in which the GTK libraries were
857installed (usually @file{/usr} or @file{/usr/local}). You can also
858find the document online, at
488dd4c4
JD
859@uref{http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html}.
860
488dd4c4
JD
861@menu
862* GTK widget names:: How widgets in GTK are named in general.
0e76e1ea 863* GTK Names in Emacs:: GTK widget names in Emacs.
488dd4c4
JD
864* GTK styles:: What can be customized in a GTK widget.
865@end menu
866
488dd4c4
JD
867@node GTK widget names
868@appendixsubsec GTK widget names
869@cindex GTK widget names
870
10214524
RS
871 A GTK widget is specified by its @dfn{widget class} and
872@dfn{widget name}. The widget class is the type of the widget: for
873example, @code{GtkMenuBar}. The widget name is the name given to a
874specific widget. A widget always has a class, but need not have a
875name.
488dd4c4 876
10214524
RS
877 @dfn{Absolute names} are sequences of widget names or widget
878classes, corresponding to hierarchies of widgets embedded within
879other widgets. For example, if a @code{GtkWindow} named @code{top}
880contains a @code{GtkVBox} named @code{box}, which in turn contains
881a @code{GtkMenuBar} called @code{menubar}, the absolute class name
882of the menu-bar widget is @code{GtkWindow.GtkVBox.GtkMenuBar}, and
883its absolute widget name is @code{top.box.menubar}.
488dd4c4
JD
884
885 When assigning a style to a widget, you can use the absolute class
886name or the absolute widget name.
10214524
RS
887
888 There are two commands to specify changes for widgets:
889
890@table @asis
891@item @code{widget_class}
892specifies a style for widgets based on the absolute class name.
893
894@item @code{widget}
895specifies a style for widgets based on the absolute class name,
896or just the class.
897@end table
898
899@noindent
3eff9df2
RS
900You must specify the class and the style in double-quotes, and put
901these commands at the top level in the GTK customization file, like
10214524 902this:
488dd4c4
JD
903
904@smallexample
905style "menufont"
906@{
907 font_name = "helvetica bold 14"
908@}
909
910widget "top.box.menubar" style "menufont"
911widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "menufont"
912@end smallexample
913
10214524
RS
914 Matching of absolute names uses shell wildcard syntax: @samp{*}
915matches zero or more characters and @samp{?} matches one character.
916This example assigns @code{base_style} to all widgets:
488dd4c4
JD
917
918@smallexample
919widget "*" style "base_style"
920@end smallexample
921
922 Given the absolute class name @code{GtkWindow.GtkVBox.GtkMenuBar}
10214524
RS
923and the corresponding absolute widget name @code{top.box.menubar}, all
924these examples specify @code{my_style} for the menu bar:
488dd4c4
JD
925
926@smallexample
927widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "my_style"
928widget_class "GtkWindow.*.GtkMenuBar" style "my_style"
929widget_class "*GtkMenuBar" style "my_style"
930widget "top.box.menubar" style "my_style"
931widget "*box*menubar" style "my_style"
932widget "*menubar" style "my_style"
933widget "*menu*" style "my_style"
934@end smallexample
935
10214524
RS
936@node GTK Names in Emacs
937@appendixsubsec GTK Widget Names in Emacs
488dd4c4
JD
938@cindex GTK widget names
939@cindex GTK widget classes
940
10214524
RS
941 In Emacs, the top level widget for a frame is a @code{GtkWindow}
942that contains a @code{GtkVBox}. The @code{GtkVBox} contains the
943@code{GtkMenuBar} and a @code{GtkFixed} widget. The vertical scroll
944bars, @code{GtkVScrollbar}, are contained in the @code{GtkFixed}
945widget. The text you write in Emacs is drawn in the @code{GtkFixed}
946widget.
488dd4c4
JD
947
948 Dialogs in Emacs are @code{GtkDialog} widgets. The file dialog is a
949@code{GtkFileSelection} widget.
950
951@noindent
952To set a style for the menu bar using the absolute class name, use:
953
954@smallexample
955widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "my_style"
956@end smallexample
957
958@noindent
959For the scroll bar, the absolute class name is:
960
961@smallexample
177c0ea7 962widget_class
488dd4c4
JD
963 "GtkWindow.GtkVBox.GtkFixed.GtkVScrollbar"
964 style "my_style"
965@end smallexample
966
967@noindent
968The names for the emacs widgets, and their classes, are:
969
970@multitable {@code{verticalScrollbar plus}} {@code{GtkFileSelection} and some}
971@item @code{emacs-filedialog}
972@tab @code{GtkFileSelection}
973@item @code{emacs-dialog}
974@tab @code{GtkDialog}
975@item @code{Emacs}
976@tab @code{GtkWindow}
977@item @code{pane}
978@tab @code{GtkVHbox}
979@item @code{emacs}
980@tab @code{GtkFixed}
a1f3b57e 981@item @code{verticalScrollBar}
488dd4c4 982@tab @code{GtkVScrollbar}
1094ef26
JD
983@item @code{emacs-toolbar}
984@tab @code{GtkToolbar}
985@item @code{menubar}
986@tab @code{GtkMenuBar}
488dd4c4
JD
987@item @code{emacs-menuitem}
988@tab anything in menus
989@end multitable
990
991@noindent
992Thus, for Emacs you can write the two examples above as:
993
994@smallexample
995widget "Emacs.pane.menubar" style "my_style"
a1f3b57e 996widget "Emacs.pane.emacs.verticalScrollBar" style "my_style"
488dd4c4
JD
997@end smallexample
998
999 GTK absolute names are quite strange when it comes to menus
177c0ea7 1000and dialogs. The names do not start with @samp{Emacs}, as they are
488dd4c4
JD
1001free-standing windows and not contained (in the GTK sense) by the
1002Emacs GtkWindow. To customize the dialogs and menus, use wildcards like this:
1003
1004@smallexample
1005widget "*emacs-dialog*" style "my_dialog_style"
1006widget "*emacs-filedialog* style "my_file_style"
1007widget "*emacs-menuitem* style "my_menu_style"
1008@end smallexample
1009
10214524
RS
1010 If you specify a customization in @file{~/.emacs.d/gtkrc}, then it
1011automatically applies only to Emacs, since other programs don't read
1012that file. For example, the drop down menu in the file dialog can not
1013be customized by any absolute widget name, only by an absolute class
3eff9df2 1014name. This is because the widgets in the drop down menu do not
10214524
RS
1015have names and the menu is not contained in the Emacs GtkWindow. To
1016have all menus in Emacs look the same, use this in
1017@file{~/.emacs.d/gtkrc}:
488dd4c4
JD
1018
1019@smallexample
1020widget_class "*Menu*" style "my_menu_style"
1021@end smallexample
1022
1023@node GTK styles
1024@appendixsubsec GTK styles
1025@cindex GTK styles
1026
1027 In a GTK style you specify the appearance widgets shall have. You
10214524
RS
1028can specify foreground and background color, background pixmap and
1029font. The edit widget (where you edit the text) in Emacs is a GTK
1030widget, but trying to specify a style for the edit widget will have no
1031effect. This is so that Emacs compiled for GTK is compatible with
1032Emacs compiled for other X toolkits. The settings for foreground,
1033background and font for the edit widget is taken from the X resources;
1034@pxref{Resources}. Here is an example of two style declarations,
1035@samp{default} and @samp{ruler}:
488dd4c4
JD
1036
1037@smallexample
488dd4c4
JD
1038pixmap_path "/usr/share/pixmaps:/usr/include/X11/pixmaps"
1039
1040style "default"
1041@{
1042 font_name = "helvetica 12"
1043
1044 bg[NORMAL] = @{ 0.83, 0.80, 0.73 @}
1045 bg[SELECTED] = @{ 0.0, 0.55, 0.55 @}
1046 bg[INSENSITIVE] = @{ 0.77, 0.77, 0.66 @}
1047 bg[ACTIVE] = @{ 0.0, 0.55, 0.55 @}
1048 bg[PRELIGHT] = @{ 0.0, 0.55, 0.55 @}
1049
1050 fg[NORMAL] = "black"
1051 fg[SELECTED] = @{ 0.9, 0.9, 0.9 @}
1052 fg[ACTIVE] = "black"
1053 fg[PRELIGHT] = @{ 0.9, 0.9, 0.9 @}
1054
1055 base[INSENSITIVE] = "#777766"
1056 text[INSENSITIVE] = @{ 0.60, 0.65, 0.57 @}
1057
1058 bg_pixmap[NORMAL] = "background.xpm"
1059 bg_pixmap[INSENSITIVE] = "background.xpm"
1060 bg_pixmap[ACTIVE] = "background.xpm"
177c0ea7 1061 bg_pixmap[PRELIGHT] = "<none>"
488dd4c4
JD
1062
1063@}
1064
1065style "ruler" = "default"
1066@{
1067 font_name = "helvetica 8"
1068@}
1069
1070@end smallexample
1071
10214524 1072 The style @samp{ruler} inherits from @samp{default}. This way you can build
488dd4c4
JD
1073on existing styles. The syntax for fonts and colors is described below.
1074
10214524
RS
1075 As this example shows, it is possible to specify several values for
1076foreground and background depending on the widget's @dfn{state}. The
1077possible states are:
1078
488dd4c4
JD
1079@table @code
1080@item NORMAL
1081This is the default state for widgets.
1082@item ACTIVE
1083This is the state for a widget that is ready to do something. It is
177c0ea7 1084also for the trough of a scroll bar, i.e. @code{bg[ACTIVE] = "red"}
488dd4c4
JD
1085sets the scroll bar trough to red. Buttons that have been pressed but
1086not released yet (``armed'') are in this state.
1087@item PRELIGHT
4a446de9
RS
1088This is the state for a widget that can be manipulated, when the mouse
1089pointer is over it---for example when the mouse is over the thumb in
1090the scroll bar or over a menu item. When the mouse is over a button
1091that is not pressed, the button is in this state.
488dd4c4 1092@item SELECTED
4a446de9
RS
1093This is the state for data that has been selected by the user. It can
1094be selected text or items selected in a list. This state is not used
1095in Emacs.
488dd4c4
JD
1096@item INSENSITIVE
1097This is the state for widgets that are visible, but they can not be
10214524
RS
1098manipulated in the usual way---for example, buttons that can't be
1099pressed, and disabled menu items. To display disabled menu items in
1100yellow, use @code{fg[INSENSITIVE] = "yellow"}.
488dd4c4
JD
1101@end table
1102
10214524 1103 Here are the things that can go in a style declaration:
488dd4c4
JD
1104
1105@table @code
1106@item bg[@var{state}] = @var{color}
10214524
RS
1107This specifies the background color for the widget. Note that
1108editable text doesn't use @code{bg}; it uses @code{base} instead.
488dd4c4
JD
1109
1110@item base[@var{state}] = @var{color}
10214524
RS
1111This specifies the background color for editable text. In Emacs, this
1112color is used for the background of the text fields in the file
1113dialog.
488dd4c4
JD
1114
1115@item bg_pixmap[@var{state}] = "@var{pixmap}"
10214524
RS
1116This specifies an image background (instead of a background color).
1117@var{pixmap} should be the image file name. GTK can use a number of
1118image file formats, including XPM, XBM, GIF, JPEG and PNG. If you
1119want a widget to use the same image as its parent, use
1120@samp{<parent>}. If you don't want any image, use @samp{<none>}.
1121@samp{<none>} is the way to cancel a background image inherited from a
1122parent style.
1123
1124You can't specify the file by its absolute file name. GTK looks for
1125the pixmap file in directories specified in @code{pixmap_path}.
1126@code{pixmap_path} is a colon-separated list of directories within
1127double quotes, specified at the top level in a @file{gtkrc} file
1128(i.e. not inside a style definition; see example above):
488dd4c4
JD
1129
1130@smallexample
1131pixmap_path "/usr/share/pixmaps:/usr/include/X11/pixmaps"
1132@end smallexample
1133
1134@item fg[@var{state}] = @var{color}
10214524
RS
1135This specifies the foreground color for widgets to use. It is the
1136color of text in menus and buttons, and the color for the arrows in
1137the scroll bar. For editable text, use @code{text}.
488dd4c4
JD
1138
1139@item text[@var{state}] = @var{color}
177c0ea7 1140This is the color for editable text. In Emacs, this color is used for the
488dd4c4
JD
1141text fields in the file dialog.
1142
1143@item font_name = "@var{font}"
81c45292 1144This specifies the font for text in the widget. @var{font} is a
10214524
RS
1145Pango font name, for example @samp{Sans Italic 10}, @samp{Helvetica
1146Bold 12}, @samp{Courier 14}, @samp{Times 18}. See below for exact
1147syntax. The names are case insensitive.
488dd4c4
JD
1148@end table
1149
10214524
RS
1150 There are three ways to specify a color: by name, in hexadecimal
1151form, and with an RGB triplet.
488dd4c4
JD
1152
1153@noindent
1154A color name is written within double quotes, for example @code{"red"}.
1155
1156@noindent
10214524
RS
1157Hexadecimal form is the same as in X:
1158@code{#@var{rrrr}@var{gggg}@var{bbbb}}, where all three color specs
1159must have the same number of hex digits (1, 2, 3 or 4).
488dd4c4
JD
1160
1161@noindent
10214524
RS
1162An RGB triplet looks like @code{@{ @var{r}, @var{g}, @var{b} @}},
1163where @var{r}, @var{g} and @var{b} are either integers in the range
11640-65535 or floats in the range 0.0-1.0.
488dd4c4
JD
1165
1166 Pango font names have the form ``@var{family-list} @var{style-options}
5a7f4c1b 1167@var{size}.''
488dd4c4
JD
1168@cindex Pango font name
1169@noindent
1170@var{family-list} is a comma separated list of font families optionally
1171terminated by a comma. This way you can specify several families and the
1172first one found will be used. @var{family} corresponds to the second part in
1173an X font name, for example in
1174
1175@smallexample
1176-adobe-times-medium-r-normal--12-120-75-75-p-64-iso10646-1
1177@end smallexample
1178
1179@noindent
17f6554c 1180the family name is @samp{times}.
488dd4c4
JD
1181
1182@noindent
1183@var{style-options} is a whitespace separated list of words where each word
1184is a style, variant, weight, or stretch. The default value for all of
1185these is @code{normal}.
1186
1187@noindent
1188A `style' corresponds to the fourth part of an X font name. In X font
10214524
RS
1189names it is the character @samp{r}, @samp{i} or @samp{o}; in Pango
1190font names the corresponding values are @code{normal}, @code{italic},
1191or @code{oblique}.
488dd4c4
JD
1192
1193@noindent
1194A `variant' is either @code{normal} or @code{small-caps}.
1195Small caps is a font with the lower case characters replaced by
1196smaller variants of the capital characters.
1197
1198@noindent
1199Weight describes the ``boldness'' of a font. It corresponds to the third
1200part of an X font name. It is one of @code{ultra-light}, @code{light},
1201@code{normal}, @code{bold}, @code{ultra-bold}, or @code{heavy}.
1202
1203@noindent
1204Stretch gives the width of the font relative to other designs within a
1205family. It corresponds to the fifth part of an X font name. It is one of
1206@code{ultra-condensed}, @code{extra-condensed}, @code{condensed},
1207@code{semi-condensed}, @code{normal}, @code{semi-expanded},
1208@code{expanded}, @code{extra-expanded}, or @code{ultra-expanded}.
1209
1210@noindent
1211@var{size} is a decimal number that describes the font size in points.
e8fd09cc 1212@end ifnottex
ab5796a9
MB
1213
1214@ignore
1215 arch-tag: 9b6ff773-48b6-41f6-b2f9-f114b8bdd97f
1216@end ignore