On 24 Jun 99, Jan Vroonhof <vroonhof(a)math.ethz.ch> wrote:
Please give me the values of
(face-font 'default)
(specifier-spec-list (face-font 'default))
(face-font 'italic)
(specifier-spec-list (face-font 'italic))
just before and just after your custom settings are applied. Please
also give your custom settings.
Ok, this is without any custom settings loaded (with `xemacs -q
-vanilla'):
(face-font 'default) => #<font-specifier global=(((default x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((mule-fonts) .
"-*-fixed-medium-r-*--16-*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-2") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-3") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-4") ...) fallback=(((tty) . "normal")
((x) . "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-*-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-m-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-c-*-iso8859-*") ...) 0x19b>
(specifier-spec-list (face-font 'default)) => ((global ((default x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((mule-fonts) .
"-*-fixed-medium-r-*--16-*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-2") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-3") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-4") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-7") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-8") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-5") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-9") ((mule-fonts) .
"-sun-gothic-medium-r-normal--14-120-75-75-c-60-jisx0201.1976-0") ((mule-fonts)
. "-sun-gothic-medium-r-normal--14-120-75-75-c-120-jisx0208.1983-0")
((mule-fonts) .
"-wadalab-gothic-medium-r-normal--14-120-75-75-c-120-jisx0212.1990-0")
((mule-fonts) . "-*-fixed-medium-r-*--*-jisx0201.1976-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-jisx0208.1983-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-jisx0212*-*") ((mule-fonts) .
"-*-*-medium-r-*--*-gb2312.1980-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-cns11643*-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-big5*-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-sisheng_cwnn-0") ((mule-fonts) .
"-*-mincho-medium-r-*--*-ksc5601.1987-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-tis620.2529-1")))
(face-font 'italic) => #<font-specifier global=<unspecified>
fallback=#<font-specifier global=(((default x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((mule-fonts) .
"-*-fixed-medium-r-*--16-*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-2") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-3") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-4") ...) fallback=(((tty) . "normal")
((x) . "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-*-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-m-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-c-*-iso8859-*") ...) 0x19b> 0x6f0>
(specifier-spec-list (face-font 'italic)) => ((#<x-device on ":0.0"
0x1ff5> (nil . "-*-courier-medium-i-*-*-*-120-*-*-*-*-iso8859-*")))
And now we have the settings in my current session:
(face-font 'default) => #<font-specifier global=(((custom) .
"-*-fixed-medium-r-*-*-*-140-*-*-*-*-iso8859-*") ((default x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((mule-fonts) .
"-*-fixed-medium-r-*--16-*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-2") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-3") ...) fallback=(((tty) . "normal")
((x) . "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-*-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-m-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-c-*-iso8859-*") ...) 0x19b>
(specifier-spec-list (face-font 'default)) => ((global ((custom) .
"-*-fixed-medium-r-*-*-*-140-*-*-*-*-iso8859-*") ((default x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((mule-fonts) .
"-*-fixed-medium-r-*--16-*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-2") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-3") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-4") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-7") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-8") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-5") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-9") ((mule-fonts) .
"-sun-gothic-medium-r-normal--14-120-75-75-c-60-jisx0201.1976-0") ((mule-fonts)
. "-sun-gothic-medium-r-normal--14-120-75-75-c-120-jisx0208.1983-0")
((mule-fonts) .
"-wadalab-gothic-medium-r-normal--14-120-75-75-c-120-jisx0212.1990-0")
((mule-fonts) . "-*-fixed-medium-r-*--*-jisx0201.1976-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-jisx0208.1983-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-jisx0212*-*") ((mule-fonts) .
"-*-*-medium-r-*--*-gb2312.1980-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-cns11643*-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-big5*-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-sisheng_cwnn-0") ((mule-fonts) .
"-*-mincho-medium-r-*--*-ksc5601.1987-*") ((mule-fonts) .
"-*-fixed-medium-r-*--*-tis620.2529-1")))
(face-font 'italic) => #<font-specifier global=<unspecified>
fallback=#<font-specifier global=(((custom) .
"-*-fixed-medium-r-*-*-*-140-*-*-*-*-iso8859-*") ((default x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((mule-fonts) .
"-*-fixed-medium-r-*--16-*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-1") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-2") ((mule-fonts) .
"-*-fixed-medium-r-*--*-iso8859-3") ...) fallback=(((tty) . "normal")
((x) . "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-courier-*-r-*-*-*-120-*-*-*-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-m-*-iso8859-*") ((x) .
"-*-*-medium-r-*-*-*-120-*-*-c-*-iso8859-*") ...) 0x19b> 0x6f0>
(specifier-spec-list (face-font 'italic)) => ((#<x-device on ":0.0"
0x1ff4> (nil . "-*-courier-medium-i-*-*-*-120-*-*-*-*-iso8859-*")))
Here are the relevant bits out of my .emacs file:
(custom-set-faces
'(default ((t (:foreground "aquamarine" :background "black"
:family "Fixed" :size "14"))) t)
'(bold ((t (:size "14" :family "Fixed" :bold t))) t)
'(bold-italic ((t (:size "14" :family "Fixed" :bold t :italic
t))) t))
> They looked just fine before the upgrade. Any idea what could
be
> causing this?
I don't have the time to work on it for the next few days, but if
there is anybody brave enough:
This is probably because frob-face-property is to able to handle the
proper way of doing the fonts. In particular the locale = nil case
should _merge_ the fall-back specifier it got from the default font in
with the font specifier and not just throw the specifier away. (The
problem is that 'italic' has only a device specific specifier, but no
global one).
Yikes. I'm not brave enough. Good luck on this one!
--
# Erik Arneson erik(a)starseed.com Webring Software Engineer #
# Yahoo! Inc. PGP ID: 1024/6EE28A05 (541) 482-3000x105 #
# "If we couldn't laugh we would all go insane." - Jimmy Buffet #