Andreas Jaeger <aj(a)suse.de> writes:
The user has font-menu-ignore-scaled-fonts set to t.
Did he explicitly set that? Why? Note that the default differs in 21.2
and 21.1.
Why is that part of the code in 21.1.8 commented out?
Because of
1998-08-26 Jan Vroonhof <vroonhof(a)math.ethz.ch>
* menubar-items.el (default-menubar): Remove "Font Weight"
option, there is currently no custom equivalent.. Customize-faces
is "Edit faces".
However I guess I was a bit too overzealous.
;; (if (and (member weight (aref entry 1))
;; (or (member size (aref entry 2))
;; (and (not font-menu-ignore-scaled-fonts)
;; (member 0 (aref entry 2)))))
;; (enable-menu-item item)
;; (disable-menu-item item))
(if (and font-menu-ignore-scaled-fonts (member 0 (aref entry 2)))
(disable-menu-item item)
(enable-menu-item item))
This problem is actually a FAQ om comp.emacs.xemacs. Because I didn't
see the problem when I last looked, we've just told people to set
font-menu-ignore-scaled-fonts to nil as a work around. However, now
that I look at it again, it is extremely trivial. I forgot the part that
checked whether the size was actually available unscaled.
It should be
(if (and (not (member size (aref entry 2)))
font-menu-ignore-scaled-fonts (member 0 (aref entry 2)))
(disable-menu-item item)
(enable-menu-item item))
This whole disabling thing needs a rethink anyway, since it can make
it impossible to get from one family-size-weight combination to
another if there is not of fonts with hamming distance 1 between them.
Jan