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 "-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO8859-1")
(font-existsp "-Misc-*-Medium-R-Normal-*")
(font-existsp "*-Fixed-*")

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?

  • I think *-Fixed-* is for the font named Fixed, rather than for any fixed width font. You might try the font named Courier instead. There's a -m- or -c- later on in the font spec that specifies monospace. – amitp Jul 29 '20 at 22:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.