mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(set-face-font): Pay attention to fontset.
(set-face-font-auto): Call resolve-fontset-name.
This commit is contained in:
parent
88be0819a1
commit
70ccc86659
1 changed files with 2 additions and 4 deletions
|
|
@ -149,7 +149,7 @@ 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 (or (query-fontset font)
|
||||
(setq font (or (resolve-fontset-name font)
|
||||
(x-resolve-font-name font 'default frame))))
|
||||
(internal-set-face-1 face 'font font 3 frame)
|
||||
;; Record that this face's font was set explicitly, not automatically,
|
||||
|
|
@ -164,9 +164,7 @@ 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 (or (and (fontset-name-p font)
|
||||
(or (query-fontset font)
|
||||
(instantiate-fontset font)))
|
||||
(setq font (or (resolve-fontset-name font)
|
||||
(x-resolve-font-name font 'default frame))))
|
||||
(internal-set-face-1 face 'font font 3 frame))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue