aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-21 19:06:57 +0000
committerRichard M. Stallman1997-07-21 19:06:57 +0000
commit8d86541f8d67af2f4572aff8821a992fd118df14 (patch)
treeec059bfcaa0a22ef03b3d40d90df12231129b6d6
parentb1b7afc798b9020d1d3e4d4dbd459acec8c85510 (diff)
downloademacs-8d86541f8d67af2f4572aff8821a992fd118df14.tar.gz
emacs-8d86541f8d67af2f4572aff8821a992fd118df14.zip
(fixed, excerpt): Define with defface. No longer
queries X server to find a "fixed" font; that was too slow and didn't work for everyone.
-rw-r--r--lisp/enriched.el33
1 files changed, 16 insertions, 17 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el
index 10bbb23b4f2..fdae2ac8303 100644
--- a/lisp/enriched.el
+++ b/lisp/enriched.el
@@ -59,23 +59,22 @@
59;;; Set up faces & display table 59;;; Set up faces & display table
60;;; 60;;;
61 61
62;; A slight cheat - all emacs's faces are fixed-width. 62;; Emacs doesn't have a "fixed" face by default, since all faces currently
63;; The idea is just to pick one that looks different from the default. 63;; have to be fixed-width. So we just pick one that looks different from the
64(if (internal-find-face 'fixed) 64;; default.
65 nil 65(defface fixed
66 (make-face 'fixed) 66 '((t (:bold t)))
67 (if window-system 67 "Face used for text that must be shown in fixed width.
68 (set-face-font 'fixed 68Currently, emacs can only display fixed-width fonts, but this may change.
69 (car (or (x-list-fonts "*fixed-medium*" 69This face is used for text specifically marked as fixed-width, for example
70 'default (selected-frame)) 70in text/enriched files."
71 (x-list-fonts "*fixed*" 71 :group 'enriched)
72 'default (selected-frame))))))) 72
73 73(defface excerpt
74(if (internal-find-face 'excerpt) 74 '((t (:italic t)))
75 nil 75 "Face used for text that is an excerpt from another document.
76 (make-face 'excerpt) 76This is used in enriched-mode for text explicitly marked as an excerpt."
77 (if window-system 77 :group 'enriched)
78 (make-face-italic 'excerpt nil t)))
79 78
80(defconst enriched-display-table (or (copy-sequence standard-display-table) 79(defconst enriched-display-table (or (copy-sequence standard-display-table)
81 (make-display-table))) 80 (make-display-table)))