diff options
| -rw-r--r-- | doc/emacs/display.texi | 3 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 1 | ||||
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 29 | ||||
| -rw-r--r-- | lisp/info.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 3 | ||||
| -rw-r--r-- | test/automated/font-parse-tests.el | 1 |
7 files changed, 41 insertions, 3 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index 56b643becf2..391e1a0ed58 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -613,6 +613,9 @@ This face underlines text. | |||
| 613 | This face forces use of a fixed-width font. It's reasonable to | 613 | This face forces use of a fixed-width font. It's reasonable to |
| 614 | customize this face to use a different fixed-width font, if you like, | 614 | customize this face to use a different fixed-width font, if you like, |
| 615 | but you should not make it a variable-width font. | 615 | but you should not make it a variable-width font. |
| 616 | @item fixed-pitch-serif | ||
| 617 | This face is like @code{fixed-pitch}, except the font has serifs and | ||
| 618 | looks more like traditional typewriting. | ||
| 616 | @cindex variable-pitch face | 619 | @cindex variable-pitch face |
| 617 | @item variable-pitch | 620 | @item variable-pitch |
| 618 | This face forces use of a variable-width font. | 621 | This face forces use of a variable-width font. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 68b48e0df91..2e316f8a532 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -3027,6 +3027,7 @@ attribute on this face (@pxref{Face Attributes}). | |||
| 3027 | @itemx bold-italic | 3027 | @itemx bold-italic |
| 3028 | @itemx underline | 3028 | @itemx underline |
| 3029 | @itemx fixed-pitch | 3029 | @itemx fixed-pitch |
| 3030 | @itemx fixed-pitch-serif | ||
| 3030 | @itemx variable-pitch | 3031 | @itemx variable-pitch |
| 3031 | These have the attributes indicated by their names (e.g., @code{bold} | 3032 | These have the attributes indicated by their names (e.g., @code{bold} |
| 3032 | has a bold @code{:weight} attribute), with all other attributes | 3033 | has a bold @code{:weight} attribute), with all other attributes |
| @@ -19,9 +19,14 @@ with a prefix argument or by typing C-u C-h C-n. | |||
| 19 | * Changes in Emacs 25.2 | 19 | * Changes in Emacs 25.2 |
| 20 | This is a bug-fix release with (almost) no new features. | 20 | This is a bug-fix release with (almost) no new features. |
| 21 | 21 | ||
| 22 | --- | ||
| 22 | ** `find-library', `help-function-def' and `help-variable-def' now run | 23 | ** `find-library', `help-function-def' and `help-variable-def' now run |
| 23 | `find-function-after-hook'. | 24 | `find-function-after-hook'. |
| 24 | 25 | ||
| 26 | +++ | ||
| 27 | *** New basic face 'fixed-pitch-serif', for a fixed-width font with serifs. | ||
| 28 | The Info-quoted and tex-verbatim faces now default to inheriting from it. | ||
| 29 | |||
| 25 | 30 | ||
| 26 | * Installation Changes in Emacs 25.1 | 31 | * Installation Changes in Emacs 25.1 |
| 27 | 32 | ||
diff --git a/lisp/faces.el b/lisp/faces.el index fddc036c13e..b1ea0f0fc34 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -98,7 +98,31 @@ a font height that isn't optimal." | |||
| 98 | (defcustom face-font-family-alternatives | 98 | (defcustom face-font-family-alternatives |
| 99 | (mapcar (lambda (arg) (mapcar 'purecopy arg)) | 99 | (mapcar (lambda (arg) (mapcar 'purecopy arg)) |
| 100 | '(("Monospace" "courier" "fixed") | 100 | '(("Monospace" "courier" "fixed") |
| 101 | |||
| 102 | ;; Monospace Serif is an Emacs invention, intended to work around | ||
| 103 | ;; portability problems when using Courier. It should work well | ||
| 104 | ;; when combined with Monospaced and with other standard fonts. | ||
| 105 | ("Monospace Serif" | ||
| 106 | |||
| 107 | ;; This looks good on GNU/Linux. | ||
| 108 | "Courier 10 Pitch" | ||
| 109 | ;; This looks good on MS-Windows and OS X. | ||
| 110 | "Consolas" | ||
| 111 | ;; This looks good on OS X. "Courier" looks good too, but is | ||
| 112 | ;; jagged on GNU/Linux and so is listed later as "courier". | ||
| 113 | "Courier Std" | ||
| 114 | ;; Although these are anti-aliased, they are a bit faint compared | ||
| 115 | ;; to the above. | ||
| 116 | "FreeMono" "Nimbus Mono L" | ||
| 117 | ;; These are aliased and look jagged. | ||
| 118 | "courier" "fixed" | ||
| 119 | ;; Omit Courier New, as it is the default MS-Windows font and so | ||
| 120 | ;; would look no different, and is pretty faint on other platforms. | ||
| 121 | ) | ||
| 122 | |||
| 123 | ;; This is present for backward compatibility. | ||
| 101 | ("courier" "CMU Typewriter Text" "fixed") | 124 | ("courier" "CMU Typewriter Text" "fixed") |
| 125 | |||
| 102 | ("Sans Serif" "helv" "helvetica" "arial" "fixed") | 126 | ("Sans Serif" "helv" "helvetica" "arial" "fixed") |
| 103 | ("helv" "helvetica" "arial" "fixed"))) | 127 | ("helv" "helvetica" "arial" "fixed"))) |
| 104 | "Alist of alternative font family names. | 128 | "Alist of alternative font family names. |
| @@ -2280,6 +2304,11 @@ If you set `term-file-prefix' to nil, this function does nothing." | |||
| 2280 | "The basic fixed-pitch face." | 2304 | "The basic fixed-pitch face." |
| 2281 | :group 'basic-faces) | 2305 | :group 'basic-faces) |
| 2282 | 2306 | ||
| 2307 | (defface fixed-pitch-serif | ||
| 2308 | '((t :family "Monospace Serif")) | ||
| 2309 | "The basic fixed-pitch face with serifs." | ||
| 2310 | :group 'basic-faces) | ||
| 2311 | |||
| 2283 | (defface variable-pitch | 2312 | (defface variable-pitch |
| 2284 | '((((type w32)) | 2313 | '((((type w32)) |
| 2285 | ;; This is a kludgy workaround for an issue discussed in | 2314 | ;; This is a kludgy workaround for an issue discussed in |
diff --git a/lisp/info.el b/lisp/info.el index 6426cfcf9ed..ae46fba25b9 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -4236,7 +4236,7 @@ With a zero prefix arg, put the name inside a function call to `info'." | |||
| 4236 | "Syntax table used in `Info-mode'.") | 4236 | "Syntax table used in `Info-mode'.") |
| 4237 | 4237 | ||
| 4238 | (defface Info-quoted | 4238 | (defface Info-quoted |
| 4239 | '((t :family "courier")) | 4239 | '((t :inherit fixed-pitch-serif)) |
| 4240 | "Face used for quoted elements.") | 4240 | "Face used for quoted elements.") |
| 4241 | 4241 | ||
| 4242 | (defvar Info-mode-font-lock-keywords | 4242 | (defvar Info-mode-font-lock-keywords |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 3ac68bdf790..8545a09fa59 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -801,8 +801,7 @@ Not smaller than the value set by `tex-suscript-height-minimum'." | |||
| 801 | (defvar tex-math-face 'tex-math) | 801 | (defvar tex-math-face 'tex-math) |
| 802 | 802 | ||
| 803 | (defface tex-verbatim | 803 | (defface tex-verbatim |
| 804 | ;; '((t :inherit font-lock-string-face)) | 804 | '((t :inherit fixed-pitch-serif)) |
| 805 | '((t :family "courier")) | ||
| 806 | "Face used to highlight TeX verbatim environments." | 805 | "Face used to highlight TeX verbatim environments." |
| 807 | :group 'tex) | 806 | :group 'tex) |
| 808 | (define-obsolete-face-alias 'tex-verbatim-face 'tex-verbatim "22.1") | 807 | (define-obsolete-face-alias 'tex-verbatim-face 'tex-verbatim "22.1") |
diff --git a/test/automated/font-parse-tests.el b/test/automated/font-parse-tests.el index 6274253360f..9f730d3148c 100644 --- a/test/automated/font-parse-tests.el +++ b/test/automated/font-parse-tests.el | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | (defvar font-parse-tests--data | 32 | (defvar font-parse-tests--data |
| 33 | `((" " ,(intern " ") nil nil nil nil) | 33 | `((" " ,(intern " ") nil nil nil nil) |
| 34 | ("Monospace" Monospace nil nil nil nil) | 34 | ("Monospace" Monospace nil nil nil nil) |
| 35 | ("Monospace Serif" ,(intern "Monospace Serif") nil nil nil nil) | ||
| 35 | ("Foo1" Foo1 nil nil nil nil) | 36 | ("Foo1" Foo1 nil nil nil nil) |
| 36 | ("12" nil 12.0 nil nil nil) | 37 | ("12" nil 12.0 nil nil nil) |
| 37 | ("12 " ,(intern "12 ") nil nil nil nil) | 38 | ("12 " ,(intern "12 ") nil nil nil nil) |