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