From efee551709e2f72e1105312302856bd976f7b813 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Apr 2020 22:00:17 -0400 Subject: [PATCH] doctor: check for fc-list (fontconfig) Instead of find-font, which the doc doesn't even use. --- core/cli/doctor.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index 5f790ccfa..22e690e2e 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -123,11 +123,8 @@ in." "both is rarely intentional; you should one or the other.")) ;; Check for fonts - (if (not (fboundp 'find-font)) - (progn - (warn! "Warning: unable to detect font") - (explain! "The `find-font' function is missing. This could indicate the incorrect " - "version of Emacs is being used!")) + (if (not (executable-find "fc-list")) + (warn! "Warning: unable to detect fonts because fontconfig isn't installed") ;; all-the-icons fonts (when (and (pcase system-type (`gnu/linux (concat (or (getenv "XDG_DATA_HOME")