Execute the following command under Terminal to enter the shell mode of Emacs, the following error occurred
$ emacs-nw
Error: fontset 'tty ' does not exist
Workaround:
Modify the settings for the font in. Emacs.
(defun s-font()
(interactive)
;; font config for org table showing.
(set-default-font "monospace-11")
(dolist (charset ‘(kana han symbol cjk-misc bopomofo))
(set-fontset-font (frame-parameter nil ‘font)
charset
(font-spec :family "WenQuanYi Micro Hei")))
;; tune rescale so that Chinese character width = 2 * English character width
(setq face-font-rescale-alist ‘(("monospace" . 1.0) ("WenQuanYi" . 1.23))))
(add-to-list ‘after-make-frame-functions
(lambda (new-frame)
(select-frame new-frame)
(if window-system
(s-font))))
(if window-system
(s-font))
Running Emacs Under the current shell appears fontset ' TTY ' does not exist.