Function: menu-set-font

menu-set-font is an interactive and byte-compiled function defined in menu-bar.el.gz.

Signature

(menu-set-font)

Documentation

Interactively select a font and make it the default on all frames.

The selected font will be the default on both the existing and future frames.

Probably introduced at or before Emacs version 27.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/menu-bar.el.gz
;; Function for setting/saving default font.

(defun menu-set-font ()
  "Interactively select a font and make it the default on all frames.

The selected font will be the default on both the existing and future frames."
  (interactive)
  (set-frame-font (if (fboundp 'x-select-font)
		      (x-select-font)
		    (mouse-select-font))
		  nil t))