aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/international/fontset.el16
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.
225FONTLIST is an alist of cons of charset and fontname. 225FONTLIST is an alist of cons of charset and fontname.
226 226
227Fontnames for charsets not listed in FONTLIST are generated from 227Fontnames for charsets not listed in FONTLIST are generated from
228XLFD-FIELDS and a property of x-charset-register of each charset 228XLFD-FIELDS and a property of x-charset-registry of each charset
229automatically." 229automatically."
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