diff options
| author | Eli Zaretskii | 2017-01-09 18:00:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-09 18:00:33 +0200 |
| commit | c2fd04c8d504b601471fe7c13011bc39abc6b921 (patch) | |
| tree | 0bb14e063f17e1e07952bdde7b409054c83a0135 | |
| parent | 16fb50db11a186ab9ab4d847c5b5136ba708ee71 (diff) | |
| download | emacs-c2fd04c8d504b601471fe7c13011bc39abc6b921.tar.gz emacs-c2fd04c8d504b601471fe7c13011bc39abc6b921.zip | |
Improve definition of 'variable-pitch' face on MS-Windows
* lisp/faces.el (variable-pitch): Don't specify too many
attributes of the font, otherwise faces that request different
weight or slant or size will not get them.
| -rw-r--r-- | lisp/faces.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 2d1c4ce4723..d7795434694 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -2311,10 +2311,13 @@ If you set `term-file-prefix' to nil, this function does nothing." | |||
| 2311 | 2311 | ||
| 2312 | (defface variable-pitch | 2312 | (defface variable-pitch |
| 2313 | '((((type w32)) | 2313 | '((((type w32)) |
| 2314 | ;; This is a kludgy workaround for an issue discussed in | 2314 | ;; This is a workaround for an issue discussed in |
| 2315 | ;; http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00746.html. | 2315 | ;; http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00746.html. |
| 2316 | :font "-outline-Arial-normal-normal-normal-sans-*-*-*-*-p-*-iso8859-1") | 2316 | ;; We need (a) the splash screen not to pick up bold-italics variant of |
| 2317 | (t :family "Sans Serif")) | 2317 | ;; the font, and (b) still be able to request bold/italic/larger size |
| 2318 | ;; variants in the likes of EWW. | ||
| 2319 | :family "Arial" :foundry "outline") | ||
| 2320 | (t :family "Sans Serif")) | ||
| 2318 | "The basic variable-pitch face." | 2321 | "The basic variable-pitch face." |
| 2319 | :group 'basic-faces) | 2322 | :group 'basic-faces) |
| 2320 | 2323 | ||