diff options
| author | Kenichi Handa | 2003-01-17 08:13:39 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-01-17 08:13:39 +0000 |
| commit | c963bbc27db5290e1cfb237918cb2be8542e9ffc (patch) | |
| tree | 18031d035d56b1fb3098b6de777cf97522b5bd9e | |
| parent | 77c49b4ce66fba7212062aca4bcdd65437a5b8de (diff) | |
| download | emacs-c963bbc27db5290e1cfb237918cb2be8542e9ffc.tar.gz emacs-c963bbc27db5290e1cfb237918cb2be8542e9ffc.zip | |
Don't setup the default fontset and
font-encoding-alist at the top level.
(setup-default-fontset): New function.
(create-fontset-from-fontset-spec): Delete autoload cookie.
| -rw-r--r-- | lisp/international/fontset.el | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 2c73d46b532..53cf2479ad2 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -40,7 +40,10 @@ | |||
| 40 | ;; character `*' is embedded in `CHARSET_ENCODING' field. The | 40 | ;; character `*' is embedded in `CHARSET_ENCODING' field. The |
| 41 | ;; REGISTRY for ASCII characters are predefined as "ISO8859-1". | 41 | ;; REGISTRY for ASCII characters are predefined as "ISO8859-1". |
| 42 | 42 | ||
| 43 | (let ((l | 43 | (defun setup-default-fontset () |
| 44 | "Setup the default fontset." | ||
| 45 | (dolist | ||
| 46 | (elt | ||
| 44 | ;; Eval this at compile-time, since fontset.el is always loaded | 47 | ;; Eval this at compile-time, since fontset.el is always loaded |
| 45 | ;; when run under X and this would always load ind-util.el as well. | 48 | ;; when run under X and this would always load ind-util.el as well. |
| 46 | (eval-when-compile | 49 | (eval-when-compile |
| @@ -119,13 +122,7 @@ | |||
| 119 | ((,(indian-glyph-char 0 'malayalam) | 122 | ((,(indian-glyph-char 0 'malayalam) |
| 120 | . ,(indian-glyph-char 255 'malayalam)) . ("*" . "Malayalam-CDAC")) | 123 | . ,(indian-glyph-char 255 'malayalam)) . ("*" . "Malayalam-CDAC")) |
| 121 | ))) | 124 | ))) |
| 122 | charset font-spec arg) | 125 | (set-fontset-font "fontset-default" (car elt) (cdr elt)))) |
| 123 | (while l | ||
| 124 | (setq charset (car (car l)) font-spec (cdr (car l)) l (cdr l)) | ||
| 125 | (if (symbolp charset) | ||
| 126 | (setq arg (make-char charset)) | ||
| 127 | (setq arg charset)) | ||
| 128 | (set-fontset-font "fontset-default" arg font-spec))) | ||
| 129 | 126 | ||
| 130 | ;; Set arguments in `font-encoding-alist' (which see). | 127 | ;; Set arguments in `font-encoding-alist' (which see). |
| 131 | (defun set-font-encoding (pattern charset encoding) | 128 | (defun set-font-encoding (pattern charset encoding) |
| @@ -139,9 +136,6 @@ | |||
| 139 | (cons (list pattern (cons charset encoding)) font-encoding-alist))) | 136 | (cons (list pattern (cons charset encoding)) font-encoding-alist))) |
| 140 | )) | 137 | )) |
| 141 | 138 | ||
| 142 | (set-font-encoding "ISO8859-1" 'ascii 0) | ||
| 143 | (set-font-encoding "JISX0201" 'latin-jisx0201 0) | ||
| 144 | |||
| 145 | ;; Allow display of arbitrary characters with an iso-10646-encoded | 139 | ;; Allow display of arbitrary characters with an iso-10646-encoded |
| 146 | ;; (`Unicode') font. | 140 | ;; (`Unicode') font. |
| 147 | (define-translation-table 'ucs-mule-to-mule-unicode | 141 | (define-translation-table 'ucs-mule-to-mule-unicode |
| @@ -494,7 +488,7 @@ with \"fontset\" in `<CHARSET_REGISTRY> field." | |||
| 494 | name)) | 488 | name)) |
| 495 | fontset))) | 489 | fontset))) |
| 496 | 490 | ||
| 497 | ;;;###autoload | 491 | |
| 498 | (defun create-fontset-from-fontset-spec (fontset-spec | 492 | (defun create-fontset-from-fontset-spec (fontset-spec |
| 499 | &optional style-variant noerror) | 493 | &optional style-variant noerror) |
| 500 | "Create a fontset from fontset specification string FONTSET-SPEC. | 494 | "Create a fontset from fontset specification string FONTSET-SPEC. |