Commit 3aa3a18c authored by Kenichi Handa's avatar Kenichi Handa

(set-face-font): Allow specifing fontset for the arg FONT.

parent 9a0ce8ca
......@@ -116,7 +116,9 @@ If FRAME is omitted or nil, use the selected frame."
If the optional FRAME argument is provided, change only
in that frame; otherwise change each frame."
(interactive (internal-face-interactive "font"))
(if (stringp font) (setq font (x-resolve-font-name font 'default frame)))
(if (stringp font)
(setq font (or (query-fontset font)
(x-resolve-font-name font 'default frame))))
(internal-set-face-1 face 'font font 3 frame))
(defun set-face-foreground (face color &optional frame)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment