In trying to debug a font issue in Emacs 26.3 on Windows 10, I ran the following, in the *scratch*
buffer:
(defun font-existsp (font)
(if (null (x-list-fonts font))
nil t))
font-existsp
(font-existsp "-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO8859-1")
nil
(font-existsp "-Misc-*-Medium-R-Normal-*")
t
(font-existsp "*-Fixed-*")
nil
And I interpret these results to mean that I don't have any fixed-width fonts installed on my system, which seems awfully strange for a stock Windows 10 system.
Am I misinterpreting these results?
*-Fixed-*
is for the font namedFixed
, rather than for any fixed width font. You might try the font namedCourier
instead. There's a-m-
or-c-
later on in the font spec that specifies monospace. – amitp Jul 29 '20 at 22:59