doctor: check for fc-list (fontconfig)
Instead of find-font, which the doc doesn't even use.
This commit is contained in:
parent
903460cd10
commit
efee551709
1 changed files with 2 additions and 5 deletions
|
@ -123,11 +123,8 @@ in."
|
||||||
"both is rarely intentional; you should one or the other."))
|
"both is rarely intentional; you should one or the other."))
|
||||||
|
|
||||||
;; Check for fonts
|
;; Check for fonts
|
||||||
(if (not (fboundp 'find-font))
|
(if (not (executable-find "fc-list"))
|
||||||
(progn
|
(warn! "Warning: unable to detect fonts because fontconfig isn't installed")
|
||||||
(warn! "Warning: unable to detect font")
|
|
||||||
(explain! "The `find-font' function is missing. This could indicate the incorrect "
|
|
||||||
"version of Emacs is being used!"))
|
|
||||||
;; all-the-icons fonts
|
;; all-the-icons fonts
|
||||||
(when (and (pcase system-type
|
(when (and (pcase system-type
|
||||||
(`gnu/linux (concat (or (getenv "XDG_DATA_HOME")
|
(`gnu/linux (concat (or (getenv "XDG_DATA_HOME")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue