[Bug: 21.5-b25] top level menu font and optionaly modeline font ... etc

Stephen J. Turnbull stephen at xemacs.org
Fri Dec 29 12:06:14 EST 2006


Paul Durao writes:

 > how do I set the font to the top level menubar

>From etc/XEmacs.ad:

! Set the menubar colors.  This overrides the default foreground and
! background colors specified above.
*menubar*Foreground:			Gray30
*menubar*Background:			Gray80
! Font of the modeline, menubar and pop-up menus.
! Note that the menubar resources do not use the `face' syntax, since they
! are X toolkit widgets and thus outside the domain of XEmacs proper.
! 
! When X Font Sets are enabled with ./configure --with-xfs (eg, for
! multilingual menubars and XIM), some .font resources (those specific to
! the Lucid widget set) are ignored in favor of .fontSet resources.  This
! example shows how to add fonts for Japanese menubars:
!
! *menubar*FontSet:	-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
!			-*-*-*-*-*-*-*-120-*-jisx0208.1983-0
!
*menubar*Font:			-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
*popup*Font:			-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
*menubar*FontSet:		-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
 			        -*-*-*-*-*-*-*-120-*-iso10646-1, \
 			        -*-*-*-*-*-*-*-120-*-jisx0208.1983-0, \
 			        -*-*-*-*-*-*-*-120-*-jisx0201.1976-0
*popup*FontSet:			-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
   			        -*-*-*-*-*-*-*-120-*-iso10646-1, \
 			        -*-*-*-*-*-*-*-120-*-jisx0208.1983-0, \
 			        -*-*-*-*-*-*-*-120-*-jisx0201.1976-0

 > there are other issues like setting modeline font and whtever other
 > internal wifgets xemacs usesv ... but this could be lack of knowledge

XEmacs basically doesn't use internal widgets, with a few exceptions,
specifically the menubar, the tabs, the progress bar, and popups.
(This is more or less for GNU Emacs compatibility; XEmacs supports
more widgets, but they are rarely if ever used because GNU can't take
advantage of them.)  Most things you might want to set are in faces.
Cf. the Info manual (C-h i), file xemacs, node faces.

HTH



More information about the XEmacs-Beta mailing list