Function: artist-figlet-get-font-list

artist-figlet-get-font-list is a byte-compiled function defined in artist.el.gz.

Signature

(artist-figlet-get-font-list)

Documentation

Read fonts in with the shell command.

Returns a list of strings.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-figlet-get-font-list ()
  "Read fonts in with the shell command.
Returns a list of strings."
  (let* ((cmd-interpreter (if (eq system-type 'android)
                              "/system/bin/sh"
                            "/bin/sh"))
	 (ls-cmd          artist-figlet-list-fonts-command)
	 (result          (artist-system cmd-interpreter ls-cmd nil))
	 (exit-code       (elt result 0))
	 (stdout          (elt result 1))
	 (stderr          (elt result 2)))
    (if (not (= exit-code 0))
	(error "Failed to read available fonts: %s (%d)" stderr exit-code))
    (artist-string-split stdout ".flf\n")))