Previous: , Up: X Resources   [Contents][Index]


27.10.6 Menubar Resources

As the menubar is implemented as a widget which is not a part of SXEmacs proper, it does not use the face mechanism for specifying fonts and colors: It uses whatever resources are appropriate to the type of widget which is used to implement it.

If Emacs was compiled to use only the Lucid Motif-lookalike menu widgets, then one way to specify the font of the menubar would be

Emacs*menubar*font: *-courier-medium-r-*-*-*-120-*-*-*-*-*-*

If both the Lucid Motif-lookalike menu widgets and X Font Sets are configured to allow multilingual menubars, then one uses

*menubar*FontSet:       -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
                        -*-*-*-*-*-*-*-120-*-jisx0208.1983-0

That would specify fonts for a Japanese menubar. Specifying only one XLFD is acceptable; specifying more than one for a given registry (language) is also allowed. When X Font Sets are configured, some .font resources (eg, menubars) are ignored in favor of the corresponding .fontSet resources.

If the Motif library is being used, then one would have to use

Emacs*menubar*fontList: *-courier-medium-r-*-*-*-120-*-*-*-*-*-*

because the Motif library uses the fontList resource name instead of font, which has subtly different semantics.

The same is true of the scrollbars: They accept whichever resources are appropriate for the toolkit in use.