diff options
| author | Kenichi Handa | 1998-06-12 07:10:59 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-06-12 07:10:59 +0000 |
| commit | 70ccc86659c536faae2f554f3d551cbc132b71b7 (patch) | |
| tree | d1ed3dc0ab4f1b76d6be8c8ea310124c0a99eafc | |
| parent | 88be0819a14f9d0cb4756ebfffb5fcd2d089c5b9 (diff) | |
| download | emacs-70ccc86659c536faae2f554f3d551cbc132b71b7.tar.gz emacs-70ccc86659c536faae2f554f3d551cbc132b71b7.zip | |
(set-face-font): Pay attention to fontset.
(set-face-font-auto): Call resolve-fontset-name.
| -rw-r--r-- | lisp/faces.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index ad394fb8e01..c9da85b19c8 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -149,7 +149,7 @@ If the optional FRAME argument is provided, change only | |||
| 149 | in that frame; otherwise change each frame." | 149 | in that frame; otherwise change each frame." |
| 150 | (interactive (internal-face-interactive "font")) | 150 | (interactive (internal-face-interactive "font")) |
| 151 | (if (stringp font) | 151 | (if (stringp font) |
| 152 | (setq font (or (query-fontset font) | 152 | (setq font (or (resolve-fontset-name font) |
| 153 | (x-resolve-font-name font 'default frame)))) | 153 | (x-resolve-font-name font 'default frame)))) |
| 154 | (internal-set-face-1 face 'font font 3 frame) | 154 | (internal-set-face-1 face 'font font 3 frame) |
| 155 | ;; Record that this face's font was set explicitly, not automatically, | 155 | ;; Record that this face's font was set explicitly, not automatically, |
| @@ -164,9 +164,7 @@ If the optional FRAME argument is provided, change only | |||
| 164 | in that frame; otherwise change each frame." | 164 | in that frame; otherwise change each frame." |
| 165 | (interactive (internal-face-interactive "font")) | 165 | (interactive (internal-face-interactive "font")) |
| 166 | (if (stringp font) | 166 | (if (stringp font) |
| 167 | (setq font (or (and (fontset-name-p font) | 167 | (setq font (or (resolve-fontset-name font) |
| 168 | (or (query-fontset font) | ||
| 169 | (instantiate-fontset font))) | ||
| 170 | (x-resolve-font-name font 'default frame)))) | 168 | (x-resolve-font-name font 'default frame)))) |
| 171 | (internal-set-face-1 face 'font font 3 frame)) | 169 | (internal-set-face-1 face 'font font 3 frame)) |
| 172 | 170 | ||