So do you mean to avoid using "custom" entirely, or just to not set
faces/fonts with custom?
I tried commenting out the lines at the end of my "custom.el" that was
setting the face/font for this, which I had set earlier, then I tried adding
this sample code to my "init.el". When I added it before I loaded
"shell",
then it failed with an unknown symbol error. When I added it after loading
"shell", then it didn't fail. Unfortunately, it also didn't fix the
problem. I then tried changing the line to specify "lucida" instead of
"courier" (I verified the font string in "xfontsel"), saving the file
and
restarting. Not only did this not fix the problem, it also seemed to not
change anything. After loading it, I used "apropos" to show me the value of
"shell-output-face", and it still shows a font string using
"courier".
If you meant to avoid using "custom" entirely, would I comment out all the
code in my "custom.el" and create manual "setq"s in my
"init.el"?
-----Original Message-----
From: Stephen J. Turnbull [mailto:turnbullīŧ sk.tsukuba.ac.jp]
Sent: Monday, August 20, 2001 8:33 PM
To: David M. Karr
Cc: xemacs-beta(a)xemacs.org
Subject: Italic fonts show up as small UNitalic fonts
>>>> "David" == David M Karr
<david.karr(a)cacheflow.com> writes:
David> All my faces that are supposed to be mapped to italic fonts
David> show up in this little UNitalic font.
This is a bug known to me that I believe is due to moving all
face-related manipulations to Custom. The technical issue is that
Custom is oriented toward GNU Emacs 19/20-style faces and
font-handling. Custom is hardly aware of XEmacs's sophisticated
"specifier" approach.
Unfortunately all our Custom experts have gone and got day jobs. So
it's unlikely that this will get fixed in the 21.4 series. I put high
priority on testing and analysis of patches directed at 21.5, though,
with hopes of putting it into 21.4 eventually.
The only way I know to be really sure of getting the faces you want is
to avoid the use of Custom (Custom tends to completely reset whole
families of faces in conditions I don't understand). That means all
the menus :-(. The syntax for directly manipulating face fonts is
(set-face-font 'shell-output-face ; face
"-*-courier-medium-i-*-*-*-120-*-*-*-*-iso8859-*" ; font
'global ; scope
nil ; tags
'prepend) ; op
The face and font args are obvious. The scope arg determines where
this specification is active (it can be limited to devices, frames,
windows, or buffers). Tags are user-definable scope limiters. The op
arg determines how the specifier is modified; 'prepend doesn't change
any other part of the specifier but guarantees that this spec is first
in the list.
There's a lot more information in info and the docstrings, but those
are the basics.
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."