diff options
| author | Kenichi Handa | 1997-06-21 01:17:00 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-06-21 01:17:00 +0000 |
| commit | 2e18c9dd23dcb15862fd87e8b31faaf309c3ec72 (patch) | |
| tree | 2b27f736d309040bc02f7755f863d1144c1b4ab8 | |
| parent | 9a6428f8b8dac9a48c4dd0d40a42f8cefe47ab88 (diff) | |
| download | emacs-2e18c9dd23dcb15862fd87e8b31faaf309c3ec72.tar.gz emacs-2e18c9dd23dcb15862fd87e8b31faaf309c3ec72.zip | |
(x-charset-registries): Name changed for consistency:
lao.mule -> MuleLao, Mule.Tibetan-X -> MuleTibetan-X.
(x-complement-fontset-spec): Optimization for latin-iso8859-1.
| -rw-r--r-- | lisp/international/fontset.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index f2906b70c22..d2af997c6b3 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -73,9 +73,9 @@ | |||
| 73 | (indian-is13194 . "IS13194-Devanagari") | 73 | (indian-is13194 . "IS13194-Devanagari") |
| 74 | (indian-2-column . "MuleIndian-2") | 74 | (indian-2-column . "MuleIndian-2") |
| 75 | (indian-1-column . "MuleIndian-1") | 75 | (indian-1-column . "MuleIndian-1") |
| 76 | (lao . "lao.mule-1") | 76 | (lao . "MuleLao-1") |
| 77 | (tibetan . "Mule.Tibetan-0") | 77 | (tibetan . "MuleTibetan-0") |
| 78 | (tibetan-1-column . "Mule.Tibetan-1") | 78 | (tibetan-1-column . "MuleTibetan-1") |
| 79 | )) | 79 | )) |
| 80 | 80 | ||
| 81 | (let ((l x-charset-registries)) | 81 | (let ((l x-charset-registries)) |
| @@ -225,7 +225,7 @@ XLFD-FIELDS is a vector of XLFD (X Logical Font Description) fields. | |||
| 225 | FONTLIST is an alist of cons of charset and fontname. | 225 | FONTLIST is an alist of cons of charset and fontname. |
| 226 | 226 | ||
| 227 | Fontnames for charsets not listed in FONTLIST are generated from | 227 | Fontnames for charsets not listed in FONTLIST are generated from |
| 228 | XLFD-FIELDS and a property of x-charset-register of each charset | 228 | XLFD-FIELDS and a property of x-charset-registry of each charset |
| 229 | automatically." | 229 | automatically." |
| 230 | (let ((charsets charset-list) | 230 | (let ((charsets charset-list) |
| 231 | (style-ignored (copy-sequence xlfd-fields)) | 231 | (style-ignored (copy-sequence xlfd-fields)) |
| @@ -270,6 +270,14 @@ automatically." | |||
| 270 | alternative-fontname-alist))) | 270 | alternative-fontname-alist))) |
| 271 | ))) | 271 | ))) |
| 272 | (setq charsets (cdr charsets)))) | 272 | (setq charsets (cdr charsets)))) |
| 273 | |||
| 274 | ;; Here's a trick for the charset latin-iso8859-1. If font for | ||
| 275 | ;; ascii also contains Latin-1 characters, use it also for | ||
| 276 | ;; latin-iso8859-1. This prevent loading a font for latin-iso8859-1 | ||
| 277 | ;; by a different name. | ||
| 278 | (if (string-match (cdr (assq 'latin-iso8859-1 x-charset-registries)) | ||
| 279 | (cdr (assq 'ascii fontlist))) | ||
| 280 | (setcdr (assq 'latin-iso8859-1 fontlist) (cdr (assq 'ascii fontlist)))) | ||
| 273 | fontlist) | 281 | fontlist) |
| 274 | 282 | ||
| 275 | ;; Return a list to be appended to `x-fixed-font-alist' when | 283 | ;; Return a list to be appended to `x-fixed-font-alist' when |